Skip to content

Commit 14f4b9e

Browse files
authored
Revert "Check highlight tags before replacing them (#82)" (#84)
This reverts commit b761550.
1 parent 22b966d commit 14f4b9e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/format.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ function replaceHighlightTags(value, highlightPreTag, highlightPostTag) {
55
// If the value of the attribute is a string,
66
// the highlight is applied by MeiliSearch (<em> tags)
77
// and we replace the <em> by the expected tag for InstantSearch
8-
if (
9-
isString(value) &&
10-
highlightPreTag !== undefined &&
11-
highlightPostTag !== undefined
12-
) {
8+
if (isString(value)) {
139
newHighlightValue = value
1410
.replace(/<em>/g, highlightPreTag)
1511
.replace(/<\/em>/g, highlightPostTag)

0 commit comments

Comments
 (0)