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