Skip to content

Commit

Permalink
fix(patches-selector): ignore punctuation marks when searching for pa…
Browse files Browse the repository at this point in the history
…tch (#1377)
  • Loading branch information
TheAabedKhan authored Oct 14, 2023
1 parent 7a785a8 commit 2dc92e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 2dc92e2

Please sign in to comment.