Cleanup
This commit is contained in:
2
node_modules/validator/es/lib/isFloat.js
generated
vendored
2
node_modules/validator/es/lib/isFloat.js
generated
vendored
@@ -6,7 +6,7 @@ export default function isFloat(str, options) {
|
||||
|
||||
var _float = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(options.locale ? decimal[options.locale] : '.', "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));
|
||||
|
||||
if (str === '' || str === '.' || str === '-' || str === '+') {
|
||||
if (str === '' || str === '.' || str === ',' || str === '-' || str === '+') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user