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');
1313const writeFile = require ( '../write-file' ) ;
1414const { resolveUpdaterObjectFromArgument } = require ( '../updaters' ) ;
1515let configsToUpdate = { } ;
16+ const sanitizeQuotesRegex = / [ ' " ] + / g;
1617
1718async function Bump ( args , version ) {
1819 // reset the cache of updated config files each
@@ -37,7 +38,7 @@ async function Bump(args, version) {
3738 await runLifecycleScript ( args , 'prerelease' ) ;
3839 const stdout = await runLifecycleScript ( args , 'prebump' ) ;
3940 if ( stdout ?. trim ( ) . length ) {
40- const prebumpString = stdout . trim ( ) ;
41+ const prebumpString = stdout . trim ( ) . replace ( sanitizeQuotesRegex , '' ) ;
4142 if ( semver . valid ( prebumpString ) ) args . releaseAs = prebumpString ;
4243 }
4344 if ( ! args . firstRelease ) {
You can’t perform that action at this time.
0 commit comments