mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix(patches-selector): ignore punctuation marks when searching for patch (#1377)
This commit is contained in:
parent
7a785a8163
commit
2dc92e26d3
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ class PatchesSelectorViewModel extends BaseViewModel {
|
|||
query.isEmpty ||
|
||||
query.length < 2 ||
|
||||
patch.name.toLowerCase().contains(query.toLowerCase()) ||
|
||||
patch.getSimpleName().toLowerCase().contains(query.toLowerCase()),
|
||||
patch.name.replaceAll(RegExp(r'[^\w\s]+'), '').toLowerCase().contains(query.toLowerCase()),
|
||||
)
|
||||
.toList();
|
||||
if (_managerAPI.areUniversalPatchesEnabled()) {
|
||||
|
|
Loading…
Reference in a new issue