Allow forward slash in tel

Closes #14646
This commit is contained in:
Mike Jolley 2017-04-24 15:24:37 +01:00
parent 6afc566de4
commit 04e07795fc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}