mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 05:01:13 +08: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;
|
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…
x
Reference in New Issue
Block a user