mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Don't limit @mention autocomplete to latin characters
The userSearch() function, used for @mention autocomplete, returned an empty list if the query string included non-latin characters or spaces. This removes this restriction, so you can search users by any characters in their display name, including spaces.
This commit is contained in:
parent
c5b6ace07b
commit
effe83d7a9
1 changed files with 0 additions and 5 deletions
|
@ -88,11 +88,6 @@ export default function userSearch(options) {
|
||||||
currentTerm = term;
|
currentTerm = term;
|
||||||
|
|
||||||
return new Ember.RSVP.Promise(function(resolve) {
|
return new Ember.RSVP.Promise(function(resolve) {
|
||||||
// TODO site setting for allowed regex in username
|
|
||||||
if (term.match(/[^a-zA-Z0-9_\.]/)) {
|
|
||||||
resolve([]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (((new Date() - cacheTime) > 30000) || (cacheTopicId !== topicId)) {
|
if (((new Date() - cacheTime) > 30000) || (cacheTopicId !== topicId)) {
|
||||||
cache = {};
|
cache = {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue