Allow any username character in user search

This commit is contained in:
Daniel Hershcovich 2016-04-16 08:07:57 +03:00
parent 1a621f3393
commit 8aac646759
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export default function userSearch(options) {
return new Ember.RSVP.Promise(function(resolve) { return new Ember.RSVP.Promise(function(resolve) {
// TODO site setting for allowed regex in username // TODO site setting for allowed regex in username
if (term.match(/[^a-zA-Z0-9_\.\-]/)) { if (term.match(/[^\w\.\-]/)) {
resolve([]); resolve([]);
return; return;
} }