Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Remove highlight for suggestions with empty query.
Pratik Chanda897852f13012
diff --git a/web/src/typeahead_helper.ts b/web/src/typeahead_helper.tsindex 86fad924203..cd78c6f8c05 100644--- a/web/src/typeahead_helper.ts+++ b/web/src/typeahead_helper.ts@@ -43,9 +43,9 @@ export function build_highlight_regex(query: string): RegExp {}export function highlight_with_escaping_and_regex(regex: RegExp, item: string): string {- // if regex is empty return entire item highlighted and escaped+ // if regex is empty return entire item escapedif (regex.source === "()") {- return "<strong>" + Handlebars.Utils.escapeExpression(item) + "</strong>";+ return Handlebars.Utils.escapeExpression(item);}// We need to assemble this manually (as opposed to doing 'join') because we need to