Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
fix regex to only take args if they include no space between the braces
Browse files Browse the repository at this point in the history
  • Loading branch information
dugajean committed May 14, 2019
1 parent 618e679 commit c3ada8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/AliasCommand.php
Expand Up @@ -229,7 +229,7 @@ private function prepareCommand($command)
*/
private function parseArguments(string &$command): array
{
preg_match_all('~\{([^}]*)\}~', $command, $matches);
preg_match_all('~\{([^} ]*)\}~', $command, $matches);

$parsedArguments = $matches[1];
foreach ($parsedArguments as $key => $arg) {
Expand Down

0 comments on commit c3ada8a

Please sign in to comment.