1
0
mirror of https://github.com/cheat/cheat.git synced 2025-07-12 16:51:57 +02:00

Merge pull request from tculp/case-insensitive-search

Added a .lower() call to line when searching
This commit is contained in:
Chris Allen Lane
2018-10-16 10:43:30 -04:00
committed by GitHub

@ -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 != '':