Merge pull request #14651 from woocommerce/fix/14646

Allow forward slash in tel
This commit is contained in:
Claudio Sanches 2017-04-24 13:56:16 -03:00 committed by GitHub
commit 89dc3b40e2
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;
}