Merge pull request #4175 from danielhers/user-search-non-whitespace

Allow any username character in user search
This commit is contained in:
Jeff Atwood 2016-05-28 01:58:23 -07:00
commit 817df3e3a0

View File

@ -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;
}