commit 4166e1810eb06820640e3c4c984b544ac9b5622a
parent f4248a01cd098b0a5bf2d17e1e6dc4367f84a624
Author: Samuel Walladge <samuel@swalladge.id.au>
Date: Mon, 23 Jan 2017 16:06:50 +1030
switch to in rather than startswith for tag search
- ref issue #31
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/simplenote_cli/notes_db.py b/simplenote_cli/notes_db.py
@@ -133,7 +133,7 @@ def _helper_gstyle_tagmatch(self, tag_pats, note):
for tp in tag_pats:
tp = tp.lower()
for t in note_tags:
- if t.lower().startswith(tp):
+ if tp in t.lower():
tag_pats_matched += 1
break