Skip to content

Commit

Permalink
chore: fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolk committed Aug 2, 2023
1 parent 54f8ac2 commit 1ee1fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amplify-app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function installAmplifyCLI() {
async function amplifyCLIVersionCheck() {
try {
const amplifyCLIVersionRaw = await callAmplify(['-v'], { inheritIO: false });
const amplifyCLIVersionMatch = amplifyCLIVersionRaw.match(/\d+\.\d+\.\d+(-[a-z]+\.[0-9]+)?/g);
const amplifyCLIVersionMatch = amplifyCLIVersionRaw.match(/^\d+\.\d+\.\d/g);
const amplifyCLIVersion =
Array.isArray(amplifyCLIVersionMatch) && amplifyCLIVersionMatch.length > 0 ? amplifyCLIVersionMatch[0] : undefined;
const minCLIVersion = engines['@aws-amplify/cli'];
Expand Down

0 comments on commit 1ee1fdb

Please sign in to comment.