Update templates/index.html
Browse files- templates/index.html +1 -2
templates/index.html
CHANGED
@@ -443,8 +443,7 @@
|
|
443 |
const input = event.target;
|
444 |
let value = input.value;
|
445 |
|
446 |
-
|
447 |
-
value = value.replace(/[^0-9.]/g, "");
|
448 |
|
449 |
// Remove multiple decimal points
|
450 |
const parts = value.split(".");
|
|
|
443 |
const input = event.target;
|
444 |
let value = input.value;
|
445 |
|
446 |
+
value = value.replace(/[^0-9.-]/g, "");
|
|
|
447 |
|
448 |
// Remove multiple decimal points
|
449 |
const parts = value.split(".");
|