mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "Don't limit @mention autocomplete to latin characters"
This reverts commit effe83d7a9
.
This commit is contained in:
parent
611b5f996e
commit
ae52f4e776
@ -88,6 +88,11 @@ 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 New Issue
Block a user