mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06: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
@ -88,11 +88,6 @@ export default function userSearch(options) {
|
||||
currentTerm = term;
|
||||
|
||||
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)) {
|
||||
cache = {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user