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

SyntaxError: Invalid regular expression: /(now/i: Unterminated group

Open ilya-payrange opened this issue 1 year ago • 0 comments

Great extension! I use it a lot.

Today I broke it by entering filter "(something" - note the missing closing parenthesis, and got it to break:

2024-03-08 22:23:57.785 [error] SyntaxError: Invalid regular expression: /(now/i: Unterminated group
    at new RegExp (<anonymous>)
    at t.TreeNodeProvider.filter (~\.vscode\extensions\gruntfuggly.todo-tree-0.0.226\dist\extension.js:94:58444)
    at F (~\.vscode\extensions\gruntfuggly.todo-tree-0.0.226\dist\extension.js:82:2150)
    at ee (~\.vscode\extensions\gruntfuggly.todo-tree-0.0.226\dist\extension.js:82:13970)
    at ~\.vscode\extensions\gruntfuggly.todo-tree-0.0.226\dist\extension.js:82:6767
    at Array.map (<anonymous>)
    at $ (~\.vscode\extensions\gruntfuggly.todo-tree-0.0.226\dist\extension.js:82:6750)
    at te (~\.vscode\extensions\gruntfuggly.todo-tree-0.0.226\dist\extension.js:82:14057)

It tells me that it does NOT escape properly the entered text when making RegEx.

ilya-payrange avatar Mar 09 '24 06:03 ilya-payrange