Commit e5dc46b6 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed case sensitivity in metainfo search.

parent 44977316
Pipeline #65830 passed with stages
in 16 minutes
...@@ -77,9 +77,9 @@ const styles = theme => ({ ...@@ -77,9 +77,9 @@ const styles = theme => ({
}) })
function match(content, query) { function match(content, query) {
const queries = query.split(' ') const queries = query.toLowerCase().split(' ')
const result = queries.map(query => { const result = queries.map(query => {
const index = content.indexOf(query) const index = content.toLowerCase().indexOf(query)
if (index >= 0) { if (index >= 0) {
return [index, index + query.length] return [index, index + query.length]
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment