Skip to content

Commit

Permalink
chore: make version parsing more tolerant (electron#44918)
Browse files Browse the repository at this point in the history
* chore: make version parsing more tolerant

* Update .github/workflows/issue-opened.yml

Co-authored-by: Niklas Wenzel <[email protected]>

---------

Co-authored-by: Niklas Wenzel <[email protected]>
  • Loading branch information
codebytere and nikwen authored Dec 3, 2024
1 parent 5324c0e commit 229c2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 229c2a8

Please sign in to comment.