@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/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/index.esm.js
CHANGED
|
@@ -18727,9 +18727,10 @@ const SecurityQuestionsVerifyClass = compose(
|
|
|
18727
18727
|
|
|
18728
18728
|
customElements.define(componentName$l, SecurityQuestionsVerifyClass);
|
|
18729
18729
|
|
|
18730
|
-
|
|
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) =>
|
|
18733
|
+
const isNumericValue = (val) => !!val && !INVALID_PHONE_CHARS_RE.test(val);
|
|
18733
18734
|
|
|
18734
18735
|
const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
|
|
18735
18736
|
|