Skip to content

Commit

Permalink
modified valid mobile reg
Browse files Browse the repository at this point in the history
  • Loading branch information
pygroos committed Jul 3, 2019
1 parent ab1b14a commit 5caf382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static function isMobile( $sStr, $bTrim = false )
return false;
}

$sReExp = '/^(?:13|14|15|17|18)[0-9]{9}$/';
$sReExp = '/^(?:13|14|15|16|17|18|19)[0-9]{9}$/';
$sStr = ( $bTrim ? trim( $sStr ) : $sStr );

return ( 1 == preg_match( $sReExp, $sStr ) );
Expand Down

0 comments on commit 5caf382

Please sign in to comment.