MartinSGill / TodoTxtJs

A Javascript web app implementation of TodoTxt
72 stars 29 forks source link

Don't parse word-colon-whitespace as add-on metadata #85

Open leofontenelle opened 8 years ago

leofontenelle commented 8 years ago

Although TodoTxtJs correctly parses key:value as add-on metadata, it also parses word: as add-on metadata, which is incorrect. According to the Todo.txt format, "Both key and value must consist of non-whitespace characters, which are not colons." Hence, when the value is white space, it shouldn't be parsed as add-on metadata. On a more practical consideration, it would avoid common punctuation to be interpreted as metadata.

BTW, thanks for fixing the last bug report so quickly!