rebuilt with fixes

This commit is contained in:
or-else
2021-03-15 16:48:47 -07:00
parent e703490a1e
commit 096399fb0a
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -9611,9 +9611,10 @@ class NewTopicById extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCom
e.preventDefault();
if (this.state.groupId) {
var name = this.state.groupId.trim();
const name = this.state.groupId.trim();
const prefix = name.substr(0, 3);
if (name.length > 3 && (name.substr(0, 3) == 'usr' || name.substr(0, 3) == 'grp')) {
if (name.length > 3 && ['usr', 'grp', 'chn'].includes(prefix)) {
this.props.onSubmit(name);
} else {
this.props.onError(this.props.intl.formatMessage(messages.invalid_id), 'err');
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long