mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 06:05:40 +08:00
Revert "Don't limit @mention autocomplete to latin characters"
This reverts commit effe83d7a961b2b0334d9aec1905559c8015c01b.
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…
x
Reference in New Issue
Block a user