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

Added greedy pattern matching when validating attribute separators #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlaamanen
Copy link

Fixes #149 by making token pattern matching greedy. Otherwise, if an attribute named foo appears before another attribute named foo-bar, the latter attribute would be matched as foo, making the -bar part look like a separator after foo token.

Also fixed unit tests that were failing because invalid.pug was no longer invalid.

@ezhlobo
Copy link
Member

ezhlobo commented May 30, 2019

@pugjs/linter hey, is there a chance we can merge this and publish?

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

Successfully merging this pull request may close these issues.

Validate attribute separator not working properly
2 participants