From 608c5bad24edb63f5dbe3d038665fa1b3a8563c9 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 1 Jun 2021 16:24:46 +0200 Subject: [PATCH] fix http-ui --- http-ui/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-ui/src/main.rs b/http-ui/src/main.rs index 7d51098c3..da3b6204c 100644 --- a/http-ui/src/main.rs +++ b/http-ui/src/main.rs @@ -144,7 +144,7 @@ impl<'a, A: AsRef<[u8]>> Highlighter<'a, A> { let analyzed = self.analyzer.analyze(&old_string); for (word, token) in analyzed.reconstruct() { if token.is_word() { - let to_highlight = matching_words.matches(token.text()); + let to_highlight = matching_words.matching_bytes(token.text()).is_some(); if to_highlight { string.push_str("") } string.push_str(word); if to_highlight { string.push_str("") }