For #10734,fix the param check rule (#10858)

This commit is contained in:
Sunrisea 2023-07-28 09:33:07 +08:00 committed by GitHub
parent 4321e777a4
commit a76f0771e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ public class ParamCheckRules {
public static final int MAX_SERVICE_NAME_LENGTH = 512;
public static final String SERVICE_NAME_PATTERN_STRING = "^(?!@).((?!@@)[^\\u4E00-\\u9FA5])*$";
public static final String SERVICE_NAME_PATTERN_STRING = "^(?!@).((?!@@)[^\\u4E00-\\u9FA5\\s])*$";
public static final int MAX_GROUP_LENGTH = 128;
@ -49,7 +49,7 @@ public class ParamCheckRules {
public static final int MAX_IP_LENGTH = 128;
public static final String IP_PATTERN_STRING = "^[^\\u4E00-\\u9FA5]*$";
public static final String IP_PATTERN_STRING = "^[^\\u4E00-\\u9FA5\\s]*$";
public static final int MAX_PORT = 65535;