Closed theoriginalbit closed 4 years ago
Hey @theoriginalbit,
Great job 👍 Thanks for the bug fix!
Your PR has been merged and will be included within the next release of WhatsNewKit
No worries. Thanks for the quick merge. Look forward to seeing the next release 🙂
Minor and patch versions can be 10 or larger and the math that was used to compare versions would be incorrect in these cases. For example:
Instead this PR changes the code to perform a numeric comparison against the description strings.
I have added two additional tests, one which ensures the code can never regress to the above example, and a second which also just sanity checks equality.