@descope/web-components-ui 2.2.51 → 2.2.52
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/cjs/index.cjs.js +3 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/package.json +30 -30
- package/src/components/descope-hybrid-field/helpers.js +3 -2
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -19749,9 +19749,10 @@ var securityQuestionsVerify$1 = /*#__PURE__*/Object.freeze({
|
|
|
19749
19749
|
vars: vars$f
|
|
19750
19750
|
});
|
|
19751
19751
|
|
|
19752
|
-
|
|
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) =>
|
|
19755
|
+
const isNumericValue = (val) => !!val && !INVALID_PHONE_CHARS_RE.test(val);
|
|
19755
19756
|
|
|
19756
19757
|
const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
|
|
19757
19758
|
|