clojure.string/replace-first returns nil with replacement fn when regex doesn't match

Description

Originally reported by Takahiro Hozumi

With a function as the "replacement" argument, clojure.string/replace-first returns nil if there is no match, instead of returning the original string unchanged.

Environment

None

Assignee

Stuart Sierra

Reporter

Stuart Sierra

Labels

None

Approval

Vetted

Patch

Code and Test

Fix versions

Priority

Minor
Configure