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 e640ed0 commit 7ce247cCopy full SHA for 7ce247c
js/helpinject.js
@@ -61,10 +61,8 @@
61
console.error('Unable to parse release information', e);
62
}
63
if (typeof lastest.tag_name !== "undefined") {
64
- // Drop the 'v' from the start of the tag name
65
- var version = lastest.tag_name.substr(0, 1) == 'v' ? lastest.tag_name.substr(1) : lastest.tag_name;
66
// Run the callback
67
- cb(semverRegex().test(version) ? semverRegex().exec(version)[0] : null);
+ cb(semverRegex().test(version) ? semverNumbersOnly(semverRegex().exec(version)[0]) : null);
68
} else {
69
console.error('GitHub did not return the expected data');
70
0 commit comments