autocomplete: fix underscore-to-space conversion in usernames.

Didn't handle names with multiple underscores correctly.
This commit is contained in:
evazion
2019-11-04 15:45:07 -06:00
parent 623de37b09
commit 75ca53a9a1

View File

@@ -421,7 +421,7 @@ Autocomplete.user_source = function(term, resp, prefix) {
resp($.map(data, function(user) {
return {
type: "user",
label: user.name.replace(/_/, " "),
label: user.name.replace(/_/g, " "),
value: prefix + user.name,
level: user.level_string
};