diff --git a/src/camel_snake_kebab/internals/macros.cljc b/src/camel_snake_kebab/internals/macros.cljc index 6a14f41..6894b18 100644 --- a/src/camel_snake_kebab/internals/macros.cljc +++ b/src/camel_snake_kebab/internals/macros.cljc @@ -22,7 +22,9 @@ (symbol)))] (for [[type-label type-converter] {"string" `identity "symbol" `symbol "keyword" `keyword}] `(defn ~(make-name type-label) [s# & rest#] - (~type-converter (apply convert-case ~first-fn ~rest-fn ~sep (name s#) rest#)))))) + (if (integer? s#) + s# + (~type-converter (apply convert-case ~first-fn ~rest-fn ~sep (name s#) rest#))))))) (defmacro defconversion [case-label first-fn rest-fn sep] `(do ~(type-preserving-function case-label first-fn rest-fn sep)