Show case insensitive matches in snippet search results

This commit is contained in:
Douwe Maan 2017-04-13 11:43:46 -05:00
parent 41acc87fbd
commit 938a07f1f7

View file

@ -42,7 +42,7 @@ module SnippetsHelper
0,
lined_content.size,
surrounding_lines
) if line.include?(query)
) if line.downcase.include?(query.downcase)
end
used_lines.uniq.sort