@descope/web-components-ui 2.2.51 → 2.2.53

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/index.esm.js CHANGED
@@ -18727,9 +18727,10 @@ const SecurityQuestionsVerifyClass = compose(
18727
18727
 
18728
18728
  customElements.define(componentName$l, SecurityQuestionsVerifyClass);
18729
18729
 
18730
- const NUMERIC_RE = /^\d+$/;
18730
+ // Matches any character that is not a digit, whitespace, or phone formatting character (+, -, (, ))
18731
+ const INVALID_PHONE_CHARS_RE = /[^\d\s+\-()]/;
18731
18732
 
18732
- const isNumericValue = (val) => NUMERIC_RE.test(val.replaceAll('+', '').replaceAll('-', ''));
18733
+ const isNumericValue = (val) => !!val && !INVALID_PHONE_CHARS_RE.test(val);
18733
18734
 
18734
18735
  const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
18735
18736