[CLJS-746] clojure.string/replace pattern/function of match API difference with clojure version Created: 10/Jan/14 Updated: 10/Jan/14
I'm not sure if this was intentional. If it wasn't, I think this difference could be fixed through some use of re-find, which appears to return the same string or vector that you'd get in Clojure. If this is intentional for performance reasons, perhaps the doc string should be updated to note this, as there's no warning that the function is being called with too many arguments.
|Comment by Curtis Gagliardi [ 10/Jan/14 1:32 AM ]|
Afraid I don't see how to edit, but I wanted to include a simple example:
will log: "Match: hello world"
NullPointerException java.util.regex.Matcher.quoteReplacement (Matcher.java:655)