summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorMichael Leer <michael.leer@rackspace.co.uk>2015-09-14 15:15:48 +0100
committerMichael Leer <michael.leer@rackspace.co.uk>2015-09-14 15:15:48 +0100
commit5fbd1e98601f2a52c0b72d9559dec7a41db7f84a (patch)
tree89ff4990bc9f14423aa3fa5b4baae060a51b647a /web/react
parentffbe185d827aaaefb2c5ca9067980eb99b9d53b9 (diff)
downloadchat-5fbd1e98601f2a52c0b72d9559dec7a41db7f84a.tar.gz
chat-5fbd1e98601f2a52c0b72d9559dec7a41db7f84a.tar.bz2
chat-5fbd1e98601f2a52c0b72d9559dec7a41db7f84a.zip
PLT-41
Removed lowercase from the error wording. Removed additional toLowerCase within validator.
Diffstat (limited to 'web/react')
-rw-r--r--web/react/utils/utils.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 71cd1d344..879f68689 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -828,11 +828,11 @@ export function isValidUsername(name) {
} else if (name.length < 3 || name.length > 15) {
error = 'Must be between 3 and 15 characters';
} else if (!(/^[a-z0-9\.\-\_]+$/).test(name)) {
- error = "Must contain only lowercase letters, numbers, and the symbols '.', '-', and '_'.";
+ error = "Must contain only letters, numbers, and the symbols '.', '-', and '_'.";
} else if (!(/[a-z]/).test(name.charAt(0))) {
error = 'First character must be a letter.';
} else {
- var lowerName = name.toLowerCase().trim();
+ var lowerName = name;
for (var i = 0; i < Constants.RESERVED_USERNAMES.length; i++) {
if (lowerName === Constants.RESERVED_USERNAMES[i]) {