Don't limit @mention autocomplete to latin characters

The userSearch() function, used for @mention autocomplete, returned an empty
list if the query string included non-latin characters or spaces. This removes
this restriction, so you can search users by any characters in their display
name, including spaces.
This commit is contained in:
Noam Yorav-Raphael 2015-06-10 11:47:07 +03:00
parent c5b6ace07b
commit effe83d7a9

View file

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