Function ns-file-name makes incorrect call to clojure.string/replace when File/separator is "\\" (e.g. Windows)

Description

On Windows, where File/separator is a string consisting of a single backslash character:

I'd recommend using str/replace calls like the first one above when the things you want to replace are constant strings.

Environment

None

Activity

Show:
Andy Fingerhut
August 25, 2014, 1:01 AM

Patch tns-22-v1.patch changes the only 2 calls to clojure.string/replace I found in tools.namespace that could have their second arg be a constant string rather than a regex.

Stuart Sierra
September 7, 2014, 5:32 PM
Stuart Sierra
September 7, 2014, 8:39 PM

In release 0.2.6

Completed

Assignee

Stuart Sierra

Reporter

Andy Fingerhut

Labels

None

Approval

None

Patch

Code

Priority

Minor