parent
17c4c44c43
commit
1a15523fd2
@ -1,2 +1,2 @@ |
||||
RocketChat.checkUsernameAvailability = (username) -> |
||||
return not Meteor.users.findOne({ username: { $regex : new RegExp("^" + s.trim(username) + "$", "i") } }) |
||||
return not Meteor.users.findOne({ username: { $regex : new RegExp("^" + s.trim(s.escapeRegExp(username)) + "$", "i") } }) |
||||
|
Loading…
Reference in new issue