Skip to content

Commit

Permalink
Change 'contains' to case-insensitive function
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeil committed Mar 22, 2022
1 parent 1e5780f commit 90552ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def filter_callable(x):
return value == x
elif filter_option == FilterOption.contains:
def filter_callable(x):
return value in x
return value.lower() in x.lower()
else:
raise ValueError('Invalid FilterOption!')

Expand Down

0 comments on commit 90552ea

Please sign in to comment.