Skip to content
Permalink
Browse files

fix(MdHighlightText): avoid printing 'null' as a value (#1352)

fix #1351
  • Loading branch information...
VdustR authored and marcosmoura committed Dec 27, 2017
1 parent 18bb96c commit 4d906b6b17f66dad914316f4179a4f85be5e7f96
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/components/MdHighlightText/MdHighlightText.vue
@@ -20,7 +20,7 @@
const offset = text.toLowerCase().indexOf(term[0].toLowerCase())
if (offset === -1) {
return null
return ''
}
let last = 0

0 comments on commit 4d906b6

Please sign in to comment.
You can’t perform that action at this time.