mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
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:
parent
934da4e096
commit
99deab0f74
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user