mirror of https://github.com/zulip/zulip.git
eslint: Fix unicorn/prefer-includes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
47db96d730
commit
4428609ece
|
@ -506,7 +506,7 @@ function filter_mention_name(current_token: string): string | undefined {
|
|||
} else if (current_token.startsWith("*")) {
|
||||
current_token = current_token.slice(1);
|
||||
}
|
||||
if (current_token.lastIndexOf("*") !== -1) {
|
||||
if (current_token.includes("*")) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue