Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix unicorn/prefer-includes.

Anders Kaseorg4428609ecea8
diff --git a/web/src/composebox_typeahead.ts b/web/src/composebox_typeahead.ts
index 8e6a7e03138..2258e87a6c9 100644
--- a/web/src/composebox_typeahead.ts
+++ b/web/src/composebox_typeahead.ts
@@ -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;
}