Bug 1580188 - Not all search matches are highlighted. r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D45483

--HG--
extra : moz-landing-system : lando
This commit is contained in:
lloan 2019-09-11 08:24:58 +00:00
parent 934da4e096
commit 99deab0f74

View File

@ -168,7 +168,7 @@ class SearchPanel extends Component {
const indexEnd = indexStart + query.length;
// Handles a match in a string
if (indexStart > 0) {
if (indexStart >= 0) {
return span(
{ title: object.value },
span({}, object.value.substring(0, indexStart)),