Fix: indexOf should not be cast to boolean

This commit is contained in:
Franklin
2021-06-25 11:06:00 +02:00
parent d4025b74d3
commit 0535c42eda

View File

@@ -145,7 +145,7 @@
return result;
}
if (!~result.indexOf ('.')) {
if (result.indexOf ('.') > -1) {
missing = deci;
result += '.';
} else {