diff --git a/bin/builder.sh b/bin/builder.sh index a3ae9a26..cc790cf6 100755 --- a/bin/builder.sh +++ b/bin/builder.sh @@ -20,7 +20,7 @@ if [[ "${DEBUG}" == "true" ]]; then set -x fi -SEMVER_REGEX="^(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))(\.(0|[1-9][0-9]*))$" +SEMVER_REGEX="^(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))(\.(0|[1-9][0-9]*))(-[0-9A-Za-z.-]+)?$" function check_semver () { if [[ ! "${1}" =~ ${SEMVER_REGEX} ]]; then diff --git a/builder.json b/builder.json index d4c856cd..00151849 100644 --- a/builder.json +++ b/builder.json @@ -6,6 +6,6 @@ "forceUnstable": true, "startVersion": "14.15.0", "ignoredVersions": [], - "allowedVersions": "^14.15.0 || ^16.13.0 || >=18.12.0", + "allowedVersions": "/^(14\\.(1[5-9]|[2-9]\\d)|16\\.(1[3-9]|[2-9]\\d)|18\\.(1[2-9]|[2-9]\\d)|19|[2-9]\\d|[1-9]\\d{2,})\\./", "extractVersion": "^v(?.*)$" }