Hyperscript.jl icon indicating copy to clipboard operation
Hyperscript.jl copied to clipboard

kebab function fix

Open algunion opened this issue 3 years ago • 0 comments

When trying to create an attribute with the key "_", the kebab function used for the attribute name normalization caused the "_" name to be mapped to "-_".

However, even if the input starts with a upper case character, the mapping from "T" to "-t" doesn't make much sense.

My use case involved the usage of _hyperscript (js) package where the events are created by defining the "_" attribute.

This small fix prevents the function to alter the 1-character inputs.

algunion avatar Jun 22 '22 13:06 algunion