Merge pull request #401 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
commit 15f70c2cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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