Skip to content

Commit

Permalink
Fix the version parsing
Browse files Browse the repository at this point in the history
Now the version parts are numbers, instead of strings.
  • Loading branch information
bbatsov committed May 23, 2018
1 parent 4219f5f commit eb2b5a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cider/nrepl/version.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
(assoc (->> version-string
(re-find #"(\d+)\.(\d+)\.(\d+)-?(.*)")
rest
(map #(try (Integer/parseInt %) (catch Exception e nil)))
(zipmap [:major :minor :incremental :qualifier]))
:version-string version-string))

Expand Down

0 comments on commit eb2b5a2

Please sign in to comment.