scalatags icon indicating copy to clipboard operation
scalatags copied to clipboard

Escaping.validAttrName disallows a leading understore

Open malcolmredheron opened this issue 8 months ago • 0 comments

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!

https://github.com/com-lihaoyi/scalatags/blob/f087694f2062767ad76f9b1032f4fe3dc3642a0e/scalatags/src/scalatags/Escaping.scala#L27

malcolmredheron avatar May 31 '24 22:05 malcolmredheron