Details
Description
The replace function in namespace clojure.string ignores regex flag provided in the match pattern. For example:
CLJS
clojure.string/replace "I am NOT matched" #"(?i)not " "") => "I am NOT matched"
CLJ
clojure.string/replace "I am NOT matched" #"(?i)not " "") => "I am matched"
The attached patch fixes this by parsing the m and i flags, if set, from the match object, instead of explicitly setting only "g".