Fix: indexOf should not be cast to boolean
This commit is contained in:
@@ -145,7 +145,7 @@
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!~result.indexOf ('.')) {
|
if (result.indexOf ('.') > -1) {
|
||||||
missing = deci;
|
missing = deci;
|
||||||
result += '.';
|
result += '.';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user