@taiga-ui/addon-doc 3.16.0-dev.main-c0b4e86 → 3.16.0-dev.main-11c6b7c
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.
|
@@ -827,9 +827,7 @@
|
|
|
827
827
|
return value === "true" || value === "false";
|
|
828
828
|
}
|
|
829
829
|
function isNumberParamValue(value) {
|
|
830
|
-
|
|
831
|
-
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
832
|
-
return /^-?[\d.]+(?:e-?\d+)?$/.test(value);
|
|
830
|
+
return !!value.trim() && !Number.isNaN(Number(value)) && !value.startsWith("+");
|
|
833
831
|
}
|
|
834
832
|
function isPossibleArray(value) {
|
|
835
833
|
return value.startsWith("[") && value.endsWith("]");
|