From 0535c42edab08e9fc2e7831ddd2c598ee8bb410a Mon Sep 17 00:00:00 2001 From: Franklin Date: Fri, 25 Jun 2021 11:06:00 +0200 Subject: [PATCH] Fix: indexOf should not be cast to boolean --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 28ae0fb..80ca84b 100644 --- a/index.html +++ b/index.html @@ -145,7 +145,7 @@ return result; } - if (!~result.indexOf ('.')) { + if (result.indexOf ('.') > -1) { missing = deci; result += '.'; } else {