@taiga-ui/addon-doc 3.16.0-dev.main-2ed8ca1 → 3.16.0-dev.main-cbaeb64

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
- // TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.
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("]");