mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Allow any username character in user search
This commit is contained in:
parent
1a621f3393
commit
8aac646759
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue