You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it's broken. The unpack function makes some float out of the semver, like so:
unpack({semver,1,0,10,undefined}).
1.01
This does not work if you compare against, say a semver of 1.0.9 which results in 1.09.
A better comparison would be to not go the extra mile and converting to a float - just comparing the records as they are would work better so skip the unpack step and just do
{semver,1,0,10,undefined} > {semver,1,0,9,undefined} and so on...removes a bit of code also from the library...
Should not 1.0.10 be larger than 1.0.9, like how 1.0.9 is larger than 1.0.8?
The text was updated successfully, but these errors were encountered: