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;
|
||||
|
||||
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