@wix/form-public 0.211.0 → 0.213.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.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -32877,7 +32877,8 @@ function acceptPhoneValue({ fieldValue }) {
|
|
|
32877
32877
|
return fieldValue;
|
|
32878
32878
|
}
|
|
32879
32879
|
if (typeof fieldValue === "string") {
|
|
32880
|
-
|
|
32880
|
+
const stripped = fieldValue.replace(/[^0-9+]/g, "");
|
|
32881
|
+
return stripped || fieldValue;
|
|
32881
32882
|
}
|
|
32882
32883
|
return EMPTY_VALUE;
|
|
32883
32884
|
}
|