byteclubfr / todotxt

Todo.txt parser/serializer for node
ISC License
6 stars 4 forks source link

.removeProject() does not remove the project from the text #13

Open evanp opened 6 years ago

evanp commented 6 years ago

This code:

items = todotxt.parse('Do something +Foo')
items[0].removeProject('Foo')
console.log(todotxt.stringify(items))

... will output text that still has 'Foo' in it. line 138 uses the wrong prefix for projects; it should be a '+'.