@wix/form-public 0.211.0 → 0.212.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.cjs
CHANGED
|
@@ -32903,7 +32903,8 @@ function acceptPhoneValue({ fieldValue }) {
|
|
|
32903
32903
|
return fieldValue;
|
|
32904
32904
|
}
|
|
32905
32905
|
if (typeof fieldValue === "string") {
|
|
32906
|
-
|
|
32906
|
+
const stripped = fieldValue.replace(/[^0-9+]/g, "");
|
|
32907
|
+
return stripped || fieldValue;
|
|
32907
32908
|
}
|
|
32908
32909
|
return EMPTY_VALUE;
|
|
32909
32910
|
}
|