Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Fixed the regular expression, it was only matching values between quo…
Browse files Browse the repository at this point in the history
…tes.
  • Loading branch information
Ramy Talal committed Apr 4, 2016
1 parent 23034b9 commit 149cf29
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 49 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ramytalal/exporter",
"description": "Export the Laravel environment file to a capable web server format.",
"keywords": ["env", "environment", "export", "laravel"],
"keywords": ["env", "environment", "export", "laravel", "env export", "environment export"],
"license": "MIT",
"homepage": "https://github.com/RamyTalal/Exporter",
"authors": [
Expand Down
143 changes: 96 additions & 47 deletions composer.lock

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

2 changes: 1 addition & 1 deletion src/Console/Command/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function export($fileContents)
return 0;
}

preg_match_all('/([a-zA-z0-9]+)="(.+)"/', $fileContents, $matches);
preg_match_all('/(\w+)="?(.*)(?<!")/', $fileContents, $matches);

$exporter = new $server();
$this->line($exporter->generate($matches[1], $matches[2]));
Expand Down

0 comments on commit 149cf29

Please sign in to comment.