nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 47a582c390e04e721d593594e8717e56828581f2
parent 5bcaa12f07f7eac083cf0e75b1b0af80f2ac3364
Author: Samuel Walladge <samuel@swalladge.id.au>
Date:   Mon, 23 Jan 2017 13:29:15 +1030

make google style tag search case-insensitive

ref issue #31

Diffstat:
Msimplenote_cli/notes_db.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/simplenote_cli/notes_db.py b/simplenote_cli/notes_db.py @@ -127,10 +127,12 @@ def _helper_gstyle_tagmatch(self, tag_pats, note): return 0 # for each tag_pat, we have to find a matching tag + # .lower() used for case-insensitive search tag_pats_matched = 0 for tp in tag_pats: + tp = tp.lower() for t in note_tags: - if t.startswith(tp): + if t.lower().startswith(tp): tag_pats_matched += 1 break