@taiga-ui/addon-doc 2.49.0 → 2.50.0

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.
@@ -674,7 +674,6 @@
674
674
  }
675
675
  return "{" + result + "}";
676
676
  }
677
- // @bad TODO add more types
678
677
  /**
679
678
  * Returns readable JS entity
680
679
  * @param data
@@ -703,6 +702,7 @@
703
702
  return inspectObject(data, depth);
704
703
  }
705
704
 
705
+ /* eslint-disable unicorn/no-unsafe-regex */
706
706
  function coerceValue(value) {
707
707
  var prepared = String(value).trim();
708
708
  if (isEmptyParamValue(prepared)) {
@@ -731,6 +731,7 @@
731
731
  return value === 'true' || value === 'false';
732
732
  }
733
733
  function isNumberParamValue(value) {
734
+ // TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.
734
735
  return /^-?[\d.]+(?:e-?\d+)?$/.test(value);
735
736
  }
736
737
  function isPossibleArray(value) {