frontend/.pnpm-store/v3/files/07/ed937547fb08dcce68c944a552e7c018be29614a6fd201f00cf7c204dfaa157977f11d30284dc04a3d6fe2ac9aa4865fa5511009eccbd004cefe4e68abfb5d

12 lines
400 B
Plaintext

import assertString from './util/assertString';
import { decimal } from './alpha';
var numericNoSymbols = /^[0-9]+$/;
export default function isNumeric(str, options) {
assertString(str);
if (options && options.no_symbols) {
return numericNoSymbols.test(str);
}
return new RegExp("^[+-]?([0-9]*[".concat((options || {}).locale ? decimal[options.locale] : '.', "])?[0-9]+$")).test(str);
}