Skip to content

Commit

Permalink
fix(MdHighlightText): avoid printing 'null' as a value (#1352)
Browse files Browse the repository at this point in the history
fix #1351
  • Loading branch information
VdustR authored and marcosmoura committed Dec 27, 2017
1 parent 18bb96c commit 4d906b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdHighlightText/MdHighlightText.vue
Expand Up @@ -20,7 +20,7 @@
const offset = text.toLowerCase().indexOf(term[0].toLowerCase())
if (offset === -1) {
return null
return ''
}
let last = 0
Expand Down

0 comments on commit 4d906b6

Please sign in to comment.