mirror of
https://github.com/cheat/cheat.git
synced 2024-11-26 07:51:35 +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()):
|
for cheatsheet in sorted(get().items()):
|
||||||
match = ''
|
match = ''
|
||||||
for line in open(cheatsheet[1]):
|
for line in open(cheatsheet[1]):
|
||||||
if lowered_term in line:
|
if lowered_term in line.lower():
|
||||||
match += ' ' + line
|
match += ' ' + line
|
||||||
|
|
||||||
if match != '':
|
if match != '':
|
||||||
|
Loading…
Reference in New Issue
Block a user