Skip to content

Commit 96a2152

Browse files
committed
fix: get_wrap optimize tagOpen
1 parent c64b429 commit 96a2152

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/matcher.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ std::vector<size_t> matcher_match(const CandidateString &string, const Element &
235235
}
236236

237237
void get_wrap(const CandidateString &string, const Element &query, const Options &options, std::string *out) {
238-
const auto tagClass = "highlight"s;
239-
const auto tagOpen = "<strong class=\""s + tagClass + "\">"s;
238+
//const auto tagClass = "highlight"s;
239+
//const auto tagOpen = "<strong class=\""s + tagClass + "\">"s;
240+
const auto tagOpen = R"(<strong class="highlight">)"s;
240241
const auto tagClose = "</strong>"s;
241242

242243
if (string == query) {

0 commit comments

Comments
 (0)