Use a contains search instead of startsWith (fixes #403)
This commit is contained in:
parent
40d8ff7d17
commit
da5ef4dbbe
@ -117,7 +117,7 @@ constructor(
|
|||||||
if (sharedPreferencesHandler.useGlobSearch()) {
|
if (sharedPreferencesHandler.useGlobSearch()) {
|
||||||
nodes?.filter { cloudNode -> PatternMatcher(filterText, PatternMatcher.PATTERN_SIMPLE_GLOB).match(cloudNode.name) }
|
nodes?.filter { cloudNode -> PatternMatcher(filterText, PatternMatcher.PATTERN_SIMPLE_GLOB).match(cloudNode.name) }
|
||||||
} else {
|
} else {
|
||||||
nodes?.filter { cloudNode -> cloudNode.name.lowercase().startsWith(filterText.lowercase()) }
|
nodes?.filter { cloudNode -> cloudNode.name.contains(filterText, true) }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nodes
|
nodes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user