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

Attachments

1

Activity

Show:

Stuart Sierra September 7, 2014 at 8:39 PM

In release 0.2.6

Stuart Sierra September 7, 2014 at 5:32 PM

Andy Fingerhut August 25, 2014 at 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.

Completed

Details

Assignee

Reporter

Patch

Code

Priority

Created August 25, 2014 at 12:57 AM
Updated September 7, 2014 at 8:39 PM
Resolved September 7, 2014 at 8:39 PM