@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.
@@ -19749,9 +19749,10 @@ var securityQuestionsVerify$1 = /*#__PURE__*/Object.freeze({
19749
19749
  vars: vars$f
19750
19750
  });
19751
19751
 
19752
- const NUMERIC_RE = /^\d+$/;
19752
+ // Matches any character that is not a digit, whitespace, or phone formatting character (+, -, (, ))
19753
+ const INVALID_PHONE_CHARS_RE = /[^\d\s+\-()]/;
19753
19754
 
19754
- const isNumericValue = (val) => NUMERIC_RE.test(val.replaceAll('+', '').replaceAll('-', ''));
19755
+ const isNumericValue = (val) => !!val && !INVALID_PHONE_CHARS_RE.test(val);
19755
19756
 
19756
19757
  const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
19757
19758