File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ test('should print help', async () => {
440
440
--color, -c toggle colored output [boolean] [default: true]
441
441
--config, -g path to the config file [string]
442
442
--cwd, -d directory to execute in
443
- [string] [default: \\"__CWD__\\"]
443
+ [string] [default: \\"__CWD__\\"]
444
444
--edit, -e read last commit message from the specified file or
445
445
fallbacks to ./.git/COMMIT_EDITMSG
446
446
[string] [default: false]
@@ -479,5 +479,5 @@ async function writePkg(payload: unknown, options: TestOptions) {
479
479
function escapeCwd ( value : string , cwd : string ) : string {
480
480
return value
481
481
. replace ( cwd , '__CWD__' )
482
- . replace ( / \n [ ] + ( .+ _ _ C W D _ _ ) / , `\n $ {' ' . repeat ( cwd . length - 7 ) } $1 ` ) ;
482
+ . replace ( / ( \n [ ] + ) ( .+ _ _ C W D _ _ ) / , `$1 $ {' ' . repeat ( cwd . length - 7 ) } $2 ` ) ;
483
483
}
You can’t perform that action at this time.
0 commit comments