njsmith / posy

289 stars 17 forks source link

Made `version` return only two pieces #6

Closed maccam912 closed 1 year ago

maccam912 commented 1 year ago

Fixes https://github.com/njsmith/posy/issues/5 on on 13.1

Also moved debug before assert since assert failing made debug not record anything.

I don't recall if previous MacOS versions DO return more than 2 parts, but the code shoud handle it well. Before it returns the major and minor versions it asserts that there are AT LEAST two pieces to the version but should be fine if there are more than 2.