zokugun / vscode-explicit-folding

Customize your Folding for Visual Studio Code
MIT License
95 stars 14 forks source link

example html regex is flawed #65

Closed hanakin closed 2 years ago

hanakin commented 2 years ago

Describe the issue

the current regex example in the readme does not account for h1-h6 or svg tags

svgs are hung up on the / in the xlmns links as removing the "/" from the negate seems to break the ext, but the below code works hor h1-h6s

suggest changing it to <(?!area|base|br|col|embed|hr|img|input|link|menuitem|meta|param|source|track|wbr)([a-zA-Z0-9]+)[^>\/]*>

daiyam commented 2 years ago

@hanakin Thx