Allow any username character in user search
This commit is contained in:
parent
1a621f3393
commit
8aac646759
|
@ -91,7 +91,7 @@ export default function userSearch(options) {
|
|||
|
||||
return new Ember.RSVP.Promise(function(resolve) {
|
||||
// TODO site setting for allowed regex in username
|
||||
if (term.match(/[^a-zA-Z0-9_\.\-]/)) {
|
||||
if (term.match(/[^\w\.\-]/)) {
|
||||
resolve([]);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue