Skip to content

Commit

Permalink
[core] GraphQL: Fix an issue where the URL replacer matched on the wr…
Browse files Browse the repository at this point in the history
…ong regex
  • Loading branch information
saasen committed Feb 27, 2020
1 parent 7b026e0 commit bbc6945
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = async function deployApiActions(args, context) {

spinner.succeed()
output.print('GraphQL API deployed to:')
output.print(client.getUrl(response.location.replace(/^\/(gen1|v\d{4}-\d{2}-\d{2})\//, '/')))
output.print(client.getUrl(response.location.replace(/^\/(v1|v\d{4}-\d{2}-\d{2})\//, '/')))
} catch (err) {
spinner.fail()
throw err
Expand Down

0 comments on commit bbc6945

Please sign in to comment.