File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 7676 (when (contains? digits (first characters))
7777 (let [content (string (take-while (set " 1234567890._" )) characters)
7878 content (.replaceAll content " _" " " )
79- number (if (some #{\.} content)
80- (Double/parseDouble content)
81- (Long/parseLong content))]
79+ number (if (some #{\.} content) (parse-double content) (parse-long content))]
8280 [number (drop (count content) characters)])))
8381
8482(defn- read-ops2 [chars]
Original file line number Diff line number Diff line change 44 (when-let [[[_ major minor patch modifier]]
55 (seq (re-seq #"(\d +)\. (\d +)\. (\d +)(-SNAPSHOT)?"
66 version))]
7- {:major (Long/parseLong major)
8- :minor (Long/parseLong minor)
9- :patch (Long/parseLong patch)
7+ {:major (parse-long major)
8+ :minor (parse-long minor)
9+ :patch (parse-long patch)
1010 :modifier (case modifier
1111 " -SNAPSHOT" modifier-snapshot
1212 nil nil )}))
You can’t perform that action at this time.
0 commit comments