Looks like replace-first-str was deprecated in 1.2: {:deprecated "1.2"}All future contrib work is focused on the new modular libraries with no maintenance planned on the old monolithic contrib, so I think I'd recommend not using replace-first-str and instead use this: (clojure.string/replace-first "aa" #"a" "b") On Fri, Aug 12, 2011 at 11:42 AM, Marius <[email protected]> wrote: > I found a small bug in Clojure Contrib 1.2.0. > > To reproduce: > (require '[clojure.contrib.string :as s]) > (s/replace-str "a" "b" "aa") > ; "bb" as expected > > (s/replace-first-str "a" "b" "aa") > ; java.lang.ClassCastException: java.lang.String cannot be cast to > java.util.regex.Pattern > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
