We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9913fb7 commit a5041f4Copy full SHA for a5041f4
web/versioning.js
@@ -53,7 +53,7 @@ function versionSplit(v) {
53
* @return {Number} A negative number if v2 represents a version
54
* smaller than v1 (ignoring the suffix), 0 if
55
* equal (again, ignoring the suffix), and a
56
- * positive number otheriwse.
+ * positive number otherwise.
57
*/
58
function compareVN(v1, v2) {
59
for (var i = 0; i < 3; i++) {
@@ -76,9 +76,9 @@ function compareVN(v1, v2) {
76
* v2 == v1, and a positive number otherwise.
77
78
function compareV(v1, v2) {
79
- var nd = compareVN(v1, v2);
80
- if (nd != 0) {
81
- return nd;
+ var n = compareVN(v1, v2);
+ if (n != 0) {
+ return n;
82
}
83
else {
84
return -v1.suffix.localeCompare(v2.suffix);
0 commit comments