Commit f0190249 authored by Johan Helsing's avatar Johan Helsing

Fix version parsing for dev

parent b5a871ce
const versionStringRe = /v?(\d+)\.(\d+)(\.(\d+))?/;
function parseVersion(versionString) {
const match = versionString.match(versionStringRe);
if (!match)
return undefined;
const major = parseInt(match[1]);
const minor = parseInt(match[2]);
const patch = match[3] ? parseInt(match[4]) : undefined;
......
......@@ -98,7 +98,7 @@ function listenForGerritChanges() {
const version = parseVersion(branch);
// The tests are currently broken for branches prior to 5.11
if (version.major === 5 && version.minor < 11) {
if (version && version.major === 5 && version.minor < 11) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment