joe ertaba schrieb:
> I think 0.2b is bigger than 0.2 !?
it isn't for Firefox:
var comp = Components.classes["@mozilla.org/xpcom/version-comparator;1"].
            createInstance(Components.interfaces.nsIVersionComparator);
comp.compare("0.3", "0.2"); // 1 => 0.3 bigger than 0.2
comp.compare("0.2b", "0.2"); // -1 => 0.2b lower than 0.2
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to