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
I suggest to add a version scheme intdot that is defined as follows:
To compare 2 versions a and b, do:
A = a.split('.'); B = b.split('.') // split each version on .
for i in 0..min(len(a), len(b):
if (int(a[i]) > int(b[i])):
return 'A greater than B'
elseif (int(a[i]) < int(b[i])):
return 'B greater than A'
if len(a) > len(b):
return 'A greater than B'
if len(b) > len(a):
return 'B greater than A'
return 'A matches B'
This will cover 80% of the currently used version schemes that do not follow one of the well-known version-schemes.
I suggest to add a version scheme
intdot
that is defined as follows:To compare 2 versions a and b, do:
This will cover 80% of the currently used version schemes that do not follow one of the well-known version-schemes.
Thoughts?
Flagging @pombredanne for comments.
The text was updated successfully, but these errors were encountered: