mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix(patches-selector): ignore punctuation marks when searching for patch (#1377)
This commit is contained in:
parent
7a785a8163
commit
2dc92e26d3
@ -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 New Issue
Block a user