mirror of
https://github.com/cheat/cheat.git
synced 2024-12-22 12:45:06 +01:00
Merge pull request #401 from tculp/case-insensitive-search
Added a .lower() call to line when searching
This commit is contained in:
commit
15f70c2cc3
@ -84,7 +84,7 @@ def search(term):
|
||||
for cheatsheet in sorted(get().items()):
|
||||
match = ''
|
||||
for line in open(cheatsheet[1]):
|
||||
if lowered_term in line:
|
||||
if lowered_term in line.lower():
|
||||
match += ' ' + line
|
||||
|
||||
if match != '':
|
||||
|
Loading…
Reference in New Issue
Block a user