diff options
Diffstat (limited to 'goatNote.py')
-rw-r--r-- | goatNote.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/goatNote.py b/goatNote.py index d457ee0..1bf153e 100644 --- a/goatNote.py +++ b/goatNote.py @@ -22,7 +22,7 @@ class date: def asString(self): return f"{str(self.year)}.{str(self.month):{'0'}>2}.{str(self.day):{'0'}>2}" -# Tokenizing with regex + def tokenize(file: str): headingRe = r"\s*\*\s*([A-z0-9 ]+)\s*\*\s*\[(\d\d\d\d[.]\d\d[.]\d\d)\]\s*{(TO[.]DO|DONE)}\s*" bulletPointRe = r"-\s*((\s|[A-z0-9])+)\s*" @@ -156,6 +156,7 @@ while line[0] != "close": elif line[0] == "save": file.write(outputGoatNote(values, types)) file.flush() + #save file else: print("Invalid command :(") |