mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 02:38:54 +08:00
FIX: Linting error
This commit is contained in:
parent
b6bb8df622
commit
4b166cccc1
@ -46,10 +46,10 @@ export default TextField.extend({
|
||||
return usernames;
|
||||
}
|
||||
|
||||
|
||||
const termRegexp = (currentUser && currentUser.can_send_private_email_messages) ?
|
||||
/[^\w.-@]/g :
|
||||
/[^\w.-]/g;
|
||||
const termRegexp =
|
||||
currentUser && currentUser.can_send_private_email_messages
|
||||
? /[^\w.-@]/g
|
||||
: /[^\w.-]/g;
|
||||
|
||||
this.$()
|
||||
.val(this.get("usernames"))
|
||||
@ -61,7 +61,6 @@ export default TextField.extend({
|
||||
updateData: opts && opts.updateData ? opts.updateData : false,
|
||||
|
||||
dataSource(term) {
|
||||
|
||||
var results = userSearch({
|
||||
term: term.replace(termRegexp, ""),
|
||||
topicId: self.get("topicId"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user