Skip to content

Commit

Permalink
fix(publisher): Fix an issue that caused the publisher API to reject …
Browse files Browse the repository at this point in the history
…with the most recent binaries (As an aside, the recommended approach is to use the CLI not the API for almost all use cases- see the examples for more details)
  • Loading branch information
TimothyJones committed Oct 18, 2021
1 parent 713ecc8 commit 4a100bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Publisher {
instance.stderr.on('data', (l) => output.push(l));
instance.once('close', (code) => {
const o = output.join('\n');
const pactUrls = /^https?:\/\/.*\/pacts\/.*$/gim.exec(o);
const pactUrls = /https?:\/\/.*\/pacts\/.*$/gim.exec(o);
if (code !== 0 || !pactUrls) {
logger.error(`Could not publish pact:\n${o}`);
return reject(new Error(o));
Expand Down

0 comments on commit 4a100bb

Please sign in to comment.