Skip to content

Commit

Permalink
Better search implementation #175
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Apr 4, 2022
1 parent 3f6a6c8 commit e6607b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,20 @@ class SearchHelper {
return false
return if (searchParameters.isRegex) {
val regex = if (searchParameters.caseSensitive) {
searchParameters.searchQuery.toRegex(RegexOption.DOT_MATCHES_ALL)
searchParameters.searchQuery
.toRegex(RegexOption.DOT_MATCHES_ALL)
} else {
searchParameters.searchQuery
.toRegex(setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))
}
regex.matches(stringToCheck)
} else {
stringToCheck.contains(searchParameters.searchQuery, !searchParameters.caseSensitive)
var searchFound = true
searchParameters.searchQuery.split(" ").forEach { word ->

This comment has been minimized.

Copy link
@alexanderadam

alexanderadam Apr 12, 2022

❤️

searchFound = searchFound
&& stringToCheck.contains(word, !searchParameters.caseSensitive)
}
searchFound
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion fastlane/metadata/android/en-US/changelogs/106.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
* Add editable chars fields #539
* Better visualization of passwords #454 #1270
* Passphrase implementation #218
* Fix small bugs #1282
* Fix small bugs #1282
* Better search implementation #175
3 changes: 2 additions & 1 deletion fastlane/metadata/android/fr-FR/changelogs/105.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
* Ajouter un avertissement pour informer de l'utilisation de KeyStore #1269
* Déblocage par empreinte n'est plus par défaut #1273
* Onglets pour afficher séparément le contenu principal et le contenu avancé
* Correction de couleur d'URL
* Correction de couleur d'URL
* Meilleure implémentation de la recherche #175

0 comments on commit e6607b5

Please sign in to comment.