jsTodoTxt icon indicating copy to clipboard operation
jsTodoTxt copied to clipboard

removeExtension() not working if no other text in body

Open benjamonnguyen opened this issue 1 year ago • 0 comments

version: next

const item = Item("due:0") // "due:0"
item.removeExtension("due", "0") // "due:"

May need to reconsider how extensions work in general. It is the only part of this library that is difficult to work with. Particularly finding a lot of issues with how it tracks spans.

benjamonnguyen avatar Aug 22 '23 13:08 benjamonnguyen