From 8aac646759f942a41a6afb57b4703d1b0a1a591f Mon Sep 17 00:00:00 2001 From: Daniel Hershcovich Date: Sat, 16 Apr 2016 08:07:57 +0300 Subject: [PATCH] Allow any username character in user search --- app/assets/javascripts/discourse/lib/user-search.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/user-search.js.es6 b/app/assets/javascripts/discourse/lib/user-search.js.es6 index 08d5c6bd639..eb5bc209b35 100644 --- a/app/assets/javascripts/discourse/lib/user-search.js.es6 +++ b/app/assets/javascripts/discourse/lib/user-search.js.es6 @@ -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; }