Skip to content

Commit

Permalink
Fixing bug where docker container came out with undefined tags instea…
Browse files Browse the repository at this point in the history
…d of the version numbers in config.
  • Loading branch information
thekevinbrown committed May 17, 2019
1 parent 8adf7ce commit 88fb41f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const MAX_CONNECTION_ATTEMPTS = 8;
const versionFromUrl = (url: string) => {
// Looks for strings in this format: `/v1.4.6/`
const pattern = /\/(v\d+\.\d+\.\d+)\//g;
const result = url.match(pattern);
const result = pattern.exec(url);

// Handle result
if (!result) throw new Error(`Could not extract version number from url: '${url}'`);
return result[1];
Expand Down

0 comments on commit 88fb41f

Please sign in to comment.