File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const semver = require('semver');
13
13
const writeFile = require ( '../write-file' ) ;
14
14
const { resolveUpdaterObjectFromArgument } = require ( '../updaters' ) ;
15
15
let configsToUpdate = { } ;
16
+ const sanitizeQuotesRegex = / [ ' " ] + / g;
16
17
17
18
async function Bump ( args , version ) {
18
19
// reset the cache of updated config files each
@@ -37,7 +38,7 @@ async function Bump(args, version) {
37
38
await runLifecycleScript ( args , 'prerelease' ) ;
38
39
const stdout = await runLifecycleScript ( args , 'prebump' ) ;
39
40
if ( stdout ?. trim ( ) . length ) {
40
- const prebumpString = stdout . trim ( ) ;
41
+ const prebumpString = stdout . trim ( ) . replace ( sanitizeQuotesRegex , '' ) ;
41
42
if ( semver . valid ( prebumpString ) ) args . releaseAs = prebumpString ;
42
43
}
43
44
if ( ! args . firstRelease ) {
You can’t perform that action at this time.
0 commit comments