diff --git a/src/honey/sql.cljc b/src/honey/sql.cljc index 7030653..34f0162 100644 --- a/src/honey/sql.cljc +++ b/src/honey/sql.cljc @@ -227,7 +227,8 @@ Hyphens at the start or end of a string should not be touched." [s] - (str/replace s #"(\w)-(?=\w)" "$1 ")) + (cond-> s + (str/includes? s "-") (str/replace #"(\w)-(?=\w)" "$1 "))) (defn- namespace-_ "Return the namespace portion of a symbol, with dashes converted."