mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 08:45:05 +00:00
Merge pull request #3540 from noamraph/autocomplete_non_latin_display_names
Don't limit @mention autocomplete to latin characters
This commit is contained in:
commit
b779591846
@ -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…
x
Reference in New Issue
Block a user