@neovici/cosmoz-utils 5.25.1 → 5.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/number.js +2 -2
- package/package.json +1 -1
package/dist/number.js
CHANGED
|
@@ -13,5 +13,5 @@ export const parse = (value) => {
|
|
|
13
13
|
return num;
|
|
14
14
|
};
|
|
15
15
|
export const round = (num, precision = 2) => parse(num.toFixed(precision));
|
|
16
|
-
export const patternNumber =
|
|
17
|
-
export const patternInteger =
|
|
16
|
+
export const patternNumber = /^[0-9.,e-]+$/u;
|
|
17
|
+
export const patternInteger = /^[0-9]+$/u;
|