出库导入报错;
This commit is contained in:
@@ -42,7 +42,7 @@ public class RegexUtil {
|
||||
*/
|
||||
public static boolean isAccountLegal(String str) throws PatternSyntaxException {
|
||||
// 4-20位,大小写字母或数字
|
||||
String regEx = "(^[A-Za-z0-9]{3,20}$)";
|
||||
String regEx = "(^[A-Za-z0-9]{1,20}$)";
|
||||
Pattern p = Pattern.compile(regEx);
|
||||
Matcher m = p.matcher(str);
|
||||
return m.matches();
|
||||
@@ -109,4 +109,4 @@ public class RegexUtil {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user