diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-24 03:14:51 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-24 03:14:51 +0800 |
commit | df341717f78e8100802b110b1254181cc670ecc3 (patch) | |
tree | 1db28a1b0e98a42453a4a2b3aa7c9fbd3361bf69 /packages/monorepo-scripts | |
parent | 68974313e178bdee3c45b4556406960eaa26ce2a (diff) | |
download | dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.gz dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.zst dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.zip |
Remove regex
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts index d1f9e4594..4d5425ac6 100644 --- a/packages/monorepo-scripts/src/publish.ts +++ b/packages/monorepo-scripts/src/publish.ts @@ -193,7 +193,7 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string if (shouldPrintOutput) { utils.log(output); } - const isVersionPrompt = /^\? Select a new version .* (currently .*)/.test(output); + const isVersionPrompt = _.includes(output, 'Select a new version'); if (isVersionPrompt) { const outputStripLeft = output.split('new version for ')[1]; packageName = outputStripLeft.split(' ')[0]; |