|
@@ -296,7 +296,7 @@ public class StringUtils {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static boolean isPassword(String name) {
|
|
public static boolean isPassword(String name) {
|
|
|
- Pattern p = Pattern.compile("^[a-zA-Z0-9_.-@$!*%]{6,16}$");
|
|
|
|
|
|
|
+ Pattern p = Pattern.compile("^[a-zA-Z0-9_.\\-@$!*%]{6,16}$");
|
|
|
Matcher m = p.matcher(name);
|
|
Matcher m = p.matcher(name);
|
|
|
return m.matches();
|
|
return m.matches();
|
|
|
}
|
|
}
|