eslint: Fix unicorn/prefer-includes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-06-26 20:13:09 -07:00
parent 47db96d730
commit 4428609ece

View File

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