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.
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.