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:
Stuart Sierra
September 7, 2014, 8:39 PM

In release 0.2.6

Stuart Sierra
September 7, 2014, 5:32 PM
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.

Completed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Stuart Sierra

Reporter

Andy Fingerhut

Patch

Code