Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.4k stars 135 forks source link

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

Open JustOptimize opened 1 year ago

JustOptimize commented 1 year ago

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 commented 1 year ago

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

JustOptimize commented 1 year ago

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