bintangfjulio commited on
Commit
e552456
·
verified ·
1 Parent(s): f1bcb73

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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
- // Remove all characters except digits and decimal point
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(".");