Revert "Don't limit @mention autocomplete to latin characters"

This reverts commit effe83d7a9.
This commit is contained in:
Jeff Atwood 2015-06-10 12:53:57 -07:00
parent 611b5f996e
commit ae52f4e776
1 changed files with 5 additions and 0 deletions

View File

@ -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 = {};
}