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

Escaping.validAttrName disallows a leading understore #280

Open
malcolmredheron opened this issue May 31, 2024 · 0 comments
Open

Escaping.validAttrName disallows a leading understore #280

malcolmredheron opened this issue May 31, 2024 · 0 comments

Comments

@malcolmredheron
Copy link

The comment on Escaping.validAttrName says that an attribute can start with an underscore but startCharValid doesn't allow an underscore. I think that the fix is as simple as || sc == "_" but I'm submitting this as an issue rather than a PR because I haven't taken the time to make a fork, edit, build, run tests, etc. Sorry!

val startCharValid = (sc >= 'a' && sc <='z') || (sc >= 'A' && sc <='Z') || sc ==':'

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