FIX: remove word boundary regex (\b) for search result highlights. (#9338)

This commit is contained in:
Vinoth Kannan
2020-04-15 11:11:00 +05:30
committed by GitHub
parent c670a34013
commit 4a2c4232c5
14 changed files with 186 additions and 171 deletions
+2 -2
View File
@@ -94,13 +94,13 @@ QUnit.test("Search with context", async assert => {
const highlighted = [];
find("#post_7 span.highlight-strong").map((_, span) => {
find("#post_7 span.highlighted").map((_, span) => {
highlighted.push(span.innerText);
});
assert.deepEqual(
highlighted,
["a", "a", "proper", "a"],
["a proper"],
"it should highlight the post with the search terms correctly"
);