Skip to content

Commit

Permalink
Remove unnecessary backtick
Browse files Browse the repository at this point in the history
  • Loading branch information
aswasif007 committed Jan 12, 2024
1 parent 5941cca commit 8f24eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/cli/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function keyValue( values: Tuple[] ): string {
export function requoteArgs( args: string[] ): string[] {
return args.map( arg => {
if ( arg.includes( '--' ) && arg.includes( '=' ) && arg.includes( ' ' ) ) {
return arg.replace( /"/g, '\\"' ).replace( /^--([^=]*)=(.*)$/, `--$1="$2"` );
return arg.replace( /"/g, '\\"' ).replace( /^--([^=]*)=(.*)$/, '--$1="$2"' );
}

if ( arg.includes( ' ' ) && ! isJsonObject( arg ) ) {
Expand Down

0 comments on commit 8f24eb0

Please sign in to comment.