diff --git a/.github/workflows/issue-opened.yml b/.github/workflows/issue-opened.yml index ad2a03c780b8e..69c51b0d80bc6 100644 --- a/.github/workflows/issue-opened.yml +++ b/.github/workflows/issue-opened.yml @@ -61,7 +61,7 @@ jobs: // for now check for comma or space separated version. const versions = electronVersion.split(/, | /); for (const version of versions) { - const major = semver.parse(version)?.major; + const major = semver.coerce(version, { loose: true })?.major; if (major) { const versionLabel = `${major}-x-y`; let labelExists = false;