clj-commons / camel-snake-kebab

A Clojure[Script] library for word case conversions
https://clj-commons.org/camel-snake-kebab/
Eclipse Public License 1.0
475 stars 48 forks source link

(transform-keys ->kebab-case-keyword data-map) failed for numerical keys #62

Open sr3d opened 4 years ago

sr3d commented 4 years ago

for a map such as { 1 {:a "b"} }, calling transform-keys ->kebab-case-keyword would throw an exception since it tries to symbolize the numerical key.

ClassCastException java.lang.Long cannot be cast to clojure.lang.Named  clojure.core/name (core.clj:1587)

The desirable result is that numerical keys are kept in tact and only text keys are converted.

stig commented 1 year ago

This also affects UUID keys.