mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
Allowing uppercase letters in the display name.
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ module.exports = class UsersService {
|
||||
* @return {Promise} rejected if the machine's sensibilites are offended
|
||||
*/
|
||||
static isValidDisplayName(displayName) {
|
||||
const onlyLettersNumbersUnderscore = /^[a-z0-9_]+$/;
|
||||
const onlyLettersNumbersUnderscore = /^[A-Za-z0-9_]+$/;
|
||||
|
||||
if (!displayName) {
|
||||
return Promise.reject(errors.ErrMissingDisplay);
|
||||
|
||||
Reference in New Issue
Block a user