我正在尝试将连字符字符串转换为 CamelCase 字符串。我关注了这篇文章:Convert hyphens to camel case (camelCase)
(defn hyphenated-name-to-camel-case-name [^String method-name]
(clojure.string/replace method-name #"-(\w)"
#(clojure.string/upper-case (first %1))))
(hyphenated-name-to-camel-case-name "do-get-or-post")
==> do-Get-Or-Post
为什么我仍然得到输出字符串的破折号?