提交 e71410b1 authored 作者: Whispa's avatar Whispa

commit commit

上级 7209ef6d
...@@ -41,9 +41,7 @@ abstract class Controller { ...@@ -41,9 +41,7 @@ abstract class Controller {
} }
static boolean isPhoneValid(String phone) { static boolean isPhoneValid(String phone) {
return validRex(phone,"^(\\+\\d{1,3}( )?)?((\\(\\d{3}\\))|\\d{3})[- .]?\\d{3}[- .]?\\d{4}$" return validRex(phone,"^(?:[+0]9)?[0-9]{8,14}$");
+ "|^(\\+\\d{1,3}( )?)?(\\d{3}[ ]?){2}\\d{3}$"
+ "|^(\\+\\d{1,3}( )?)?(\\d{3}[ ]?)(\\d{2}[ ]?){2}\\d{2}$");
} }
static boolean isPasswordVeryStrong(String password) { static boolean isPasswordVeryStrong(String password) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论