Fix style on search cancel

js-version
Anton Medvedev 6 years ago
parent 35d5d741f4
commit eb6461f3a8

@ -4,7 +4,7 @@ const config = require('./config')
function format(value, style, highlightStyle, regexp, transform = x => x) {
if (!regexp) {
return config.string(transform(value))
return style(transform(value))
}
const marked = value
.replace(regexp, s => '<highlight>' + s + '<highlight>')

Loading…
Cancel
Save