Originally Posted by Seerah
Also, what if author A uses this versioning scheme: But author B uses this:
|
That shouldn't be a problem - the tricky part would be handling letters, such as 1.03a or 0.2(beta), etc.
if it was just numbers, then simply removing any decimal points after the first one, casting them as floats and comparing would be easy enough. You could even probably do some minor regex and at least check for any letters immediately following the numbers, cast them to a char, and compare the values.
I would imagine that would handle the vast majority of addons.