Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
e5dc46b6
Commit
e5dc46b6
authored
Dec 19, 2019
by
Markus Scheidgen
Browse files
Fixed case sensitivity in metainfo search.
parent
44977316
Pipeline
#65830
passed with stages
in 16 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/metaInfoBrowser/MetainfoSearch.js
View file @
e5dc46b6
...
...
@@ -77,9 +77,9 @@ const styles = theme => ({
})
function
match
(
content
,
query
)
{
const
queries
=
query
.
split
(
'
'
)
const
queries
=
query
.
toLowerCase
().
split
(
'
'
)
const
result
=
queries
.
map
(
query
=>
{
const
index
=
content
.
indexOf
(
query
)
const
index
=
content
.
toLowerCase
().
indexOf
(
query
)
if
(
index
>=
0
)
{
return
[
index
,
index
+
query
.
length
]
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment