Skip to content

Commit 4d906b6

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdHighlightText): avoid printing 'null' as a value (#1352)
fix #1351
1 parent 18bb96c commit 4d906b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MdHighlightText/MdHighlightText.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
const offset = text.toLowerCase().indexOf(term[0].toLowerCase())
2121
2222
if (offset === -1) {
23-
return null
23+
return ''
2424
}
2525
2626
let last = 0

0 commit comments

Comments
 (0)