@hestia-earth/utils
Advanced tools
Comparing version 0.11.2 to 0.11.3
@@ -30,3 +30,3 @@ "use strict"; | ||
return [ | ||
(_a = /^(-)?[\d\.]+(e|e-)?[\d]+$/.exec(("" + n))) === null || _a === void 0 ? void 0 : _a.length, | ||
(_a = /^(-)?[\d\.]+((e|e-)[\d]+)?$/.exec("" + n)) === null || _a === void 0 ? void 0 : _a.length, | ||
!isNaN(parseFloat("" + n)), | ||
@@ -33,0 +33,0 @@ isFinite(parseFloat("" + n)) |
@@ -40,6 +40,6 @@ "use strict"; | ||
}) | ||
// handle words followed by numbers | ||
.replace(/([A-Z][a-z]+)([0-9]{2,})/g, '$1-$2') | ||
// handle all capital letters | ||
.replace(/([A-Z])/g, function (g) { return "-" + g[0].toLowerCase(); }) | ||
// handle years | ||
.replace(/([0-9]{4})/g, function (g) { return "-" + g; }) | ||
// handle underscores | ||
@@ -46,0 +46,0 @@ .replace(/[\_\.]/g, '-') |
{ | ||
"name": "@hestia-earth/utils", | ||
"version": "0.11.2", | ||
"version": "0.11.3", | ||
"description": "Hestia Utils library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45376