Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JustOptimize opened this issue Dec 18, 2022 · 2 comments
Open

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

JustOptimize opened this issue Dec 18, 2022 · 2 comments

Comments

@JustOptimize
Copy link

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
Copy link
Author

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

@JustOptimize
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant