You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suppose my expectation would be for it to honor all instances of the dash and replace all underscores with a dash and any number of consecutive whitespace with a single dash.
Any string that starts with an underscore or dash has the underscore or dash removed in the result.
ex:
(->kebab-case "_my_string") => "my-string"
(->kebab-case "-my-string") => "my-string"
ex of NullPointerException:
(->kebab-case "-") =throws=> NullPointerException java.lang.NullPointerException
(->kebab-case "_") =throws=> NullPointerException java.lang.NullPointerException
This is also true for any number of dashes or underscores:
(->kebab-case "__----__----") =throws=> NullPointerException java.lang.NullPointerException
Also, empty strings throw the same exception:
(csk/->kebab-case "") =throws=> NullPointerException java.lang.NullPointerException
Since they all send nil to clojure.string/lower-case instead of empty string or leaving the dashes and underscores intact
The text was updated successfully, but these errors were encountered: