diff --git a/web/src/composebox_typeahead.ts b/web/src/composebox_typeahead.ts index 8e6a7e0313..2258e87a6c 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; }