todo-tree icon indicating copy to clipboard operation
todo-tree copied to clipboard

Faulty default regex - Takes $tag when preceded by tabs/spaces

Open JustOptimize opened this issue 3 years ago • 2 comments

As the title says the issue is this: image

It could be fixed by setting the default regex to this: (//|#|<!--|;|/\*|^|^[ \t]*(-|\d+.))[^\s]*($TAGS) (If this change is made at this point you could add every QOL pulls like #481 if they don't break stuff)

After: image

JustOptimize avatar Dec 18 '22 14:12 JustOptimize

PS: I know that updating the default tags could cause issues but this is a bug and not a support for a language

JustOptimize avatar Dec 18 '22 14:12 JustOptimize

There's a pull request about this: #639 It has a better regex than mine

JustOptimize avatar Mar 15 '23 15:03 JustOptimize