regex change for latest release service. Support for other tags (like -beta and -hotfix)

This commit is contained in:
Sebastiaan Pasma 2018-09-18 13:04:39 +02:00
commit 982a90b449
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F

View file

@ -75,7 +75,7 @@
});
function verifyTagFormat(tag) {
var regex = /^v?\d+\.\d+(\.\d+)?(-rc\d)?$/i;
var regex = /^v?\d+\.\d+(\.\d+)?(-([a-z]+))?(\d+)?$/i;
return regex.exec(tag);
}