Skip to content
Snippets Groups Projects
Commit 15f19be4 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

highlight case insensitively

parent 970bc84b
Branches
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class Highlighter {
// HTML and plain-text highlighting.
var safeHighlight = this.html ? sanitizeHtml(highlights[0], sanitizeHtmlParams) : highlights[0];
while ((offset = safeSnippet.indexOf(safeHighlight, lastOffset)) >= 0) {
while ((offset = safeSnippet.toLowerCase().indexOf(safeHighlight.toLowerCase(), lastOffset)) >= 0) {
// handle preamble
if (offset > lastOffset) {
var subSnippet = safeSnippet.substring(lastOffset, offset);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment