We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b6eae commit 1cd8b8bCopy full SHA for 1cd8b8b
setup/setup.js
@@ -47,7 +47,7 @@ function checkSymlinkExistsAsync() {
47
}
48
49
function ensureYarnInstalledAsync() {
50
- var semverPattern = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$/;
+ const semverPattern = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$/;
51
return execGetOutput("yarn", ["-v"], "Check yarn version")
52
.then(stdout => semverPattern.test(stdout), () => false)
53
.then(hasYarn => hasYarn || installYarnAsync());
0 commit comments