Skip to content

Commit

Permalink
Ran php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jun 26, 2024
1 parent f1dbf98 commit 54e5507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHP/ComposerAutoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private static function escapeArgument(?string $argument): string
if (!preg_match('/[\/()%!^"<>&|\s]/', $argument)) {
return $argument;
}
$argument = preg_replace('/(\\\\+)$/', '$1$1', $argument);
$argument = preg_replace('/(\\\+)$/', '$1$1', $argument);

return '"'.str_replace(['"', '^', '%', '!', "\n"], ['""', '"^^"', '"^%"', '"^!"', '!LF!'], $argument).'"';
}
Expand Down

0 comments on commit 54e5507

Please sign in to comment.