File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -840,11 +840,16 @@ module MainModuleBuilder =
840840 let parseOrZero i ( v : string ) =
841841 let v =
842842 // When i = 3 then this is the 4th part of the version. The last part of the version can be trailed by any characters so we trim them off
843- if i <> 3 then v
843+ if i <> 3 then
844+ v
844845 else
845- v |> Seq.fold( fun ( finished , v ) c -> match finished with
846- | false when Char.IsDigit( c) -> false , v + c.ToString()
847- | _ -> true , v) ( false , " " ) |> snd
846+ (( false , " " ), v)
847+ ||> Seq.fold( fun ( finished , v ) c ->
848+ if finished || Char.IsDigit( c) then
849+ false , v + c.ToString()
850+ else
851+ true , v)
852+ |> snd
848853 match System.UInt16.TryParse v with
849854 | ( true , i) -> i
850855 | ( false , _) -> 0 us
You can’t perform that action at this time.
0 commit comments