Skip to content

Commit deada78

Browse files
committed
CLJCLR-186: Fix parsing of dotnet version when version is release candidate or other preview
1 parent 567c607 commit deada78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Clojure/Clojure.Source/clojure/core_clr.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
(let [[major minor build] (.Split s (char-array [\.]))]
371371
{:major (when major (Int32/Parse ^String major))
372372
:minor (when minor (Int32/Parse ^String minor))
373-
:incremental (when build (Int32/Parse ^String build))}))
373+
:incremental (when build (Int32/Parse ^String (re-find #"^\d+" build)))}))
374374

375375
(defn- parse-framework-description []
376376
(let [^String descr framework-description

0 commit comments

Comments
 (0)