Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

include :version-string in nREPL version map

  • Loading branch information...
commit 0b8b06b622e3a2f9765f43fac53d47d9fe27feff 1 parent ac95dc7
@cemerick cemerick authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/main/clojure/clojure/tools/nrepl.clj
View
10 src/main/clojure/clojure/tools/nrepl.clj
@@ -227,7 +227,9 @@
version
(when-let [in (.getResourceAsStream (class connect) "/clojure/tools/nrepl/version.txt")]
(with-open [^java.io.BufferedReader reader (io/reader in)]
- (->> (.readLine reader)
- (re-find #"(\d+)\.(\d+)\.(\d+)-?(.*)")
- rest
- (zipmap [:major :minor :incremental :qualifier])))))
+ (let [version-string (-> reader .readLine .trim)]
+ (assoc (->> version-string
+ (re-find #"(\d+)\.(\d+)\.(\d+)-?(.*)")
+ rest
+ (zipmap [:major :minor :incremental :qualifier]))
+ :version-string version-string)))))
Please sign in to comment.
Something went wrong with that request. Please try again.