Skip to content

Commit

Permalink
fix concat
Browse files Browse the repository at this point in the history
  • Loading branch information
Яценко Андрей committed Mar 14, 2022
1 parent c4887db commit 882a87d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yzen.dev/laravel-route-coverage",
"version": "0.1.1",
"version": "0.1.2",
"description": "Laravel route coverage",
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Parser/ParserFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public function parse(): ?array
$method = preg_replace('/json/i', '', $action[1]);
$route = $action[2];
}

$route = preg_replace('/([\'"][\n\s]*\.[\n\s]*\$(.*?)[\n\s]*\.[\n\s]*[\'"])/', '{$val}', $route);
$route = preg_replace('/([\'"][\n\s]*\.[\n\s]*\$(.*?)[\n\s]*\.[\n\s]*[\'"])|{(.*)}/', '{$val}', $route);
$route = preg_replace('/([\'"][\n\s]*\.[\n\s]*\$(.*))[\'"]*/', '{$val}', $route);
$route = preg_replace('/([\'"])/', '', $route);
$route = preg_replace('/\?(.*)/', '', $route);
Expand Down

0 comments on commit 882a87d

Please sign in to comment.