Merge pull request #14651 from woocommerce/fix/14646
Allow forward slash in tel
This commit is contained in:
commit
89dc3b40e2
|
@ -32,7 +32,7 @@ class WC_Validation {
|
|||
* @return bool
|
||||
*/
|
||||
public static function is_phone( $phone ) {
|
||||
if ( 0 < strlen( trim( preg_replace( '/[\s\#0-9_\-\+\(\)]/', '', $phone ) ) ) ) {
|
||||
if ( 0 < strlen( trim( preg_replace( '/[\s\#0-9_\-\+\/\(\)]/', '', $phone ) ) ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue