SHA256
Сервер: разрешить replay старых числовых каналов
This commit is contained in:
@@ -10,8 +10,6 @@ public final class ChannelNameRules {
|
||||
Pattern.compile("^[A-Za-z0-9_-]+$");
|
||||
private static final Pattern PUBLIC_CHANNEL_ALLOWED_PATTERN =
|
||||
Pattern.compile("^[A-Za-z0-9_-]+$");
|
||||
private static final Pattern DIGITS_ONLY_PATTERN =
|
||||
Pattern.compile("^[0-9]+$");
|
||||
|
||||
private ChannelNameRules() {}
|
||||
|
||||
@@ -43,9 +41,6 @@ public final class ChannelNameRules {
|
||||
if (!PUBLIC_CHANNEL_ALLOWED_PATTERN.matcher(normalized).matches()) {
|
||||
throw new IllegalArgumentException("channelName contains unsupported characters");
|
||||
}
|
||||
if (DIGITS_ONLY_PATTERN.matcher(normalized).matches()) {
|
||||
throw new IllegalArgumentException("channelName must not contain only digits");
|
||||
}
|
||||
return normalized;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user