Skip to content

Commit

Permalink
Merge pull request #52 from ollieread/backwards-compat-fix
Browse files Browse the repository at this point in the history
Backwards compatibility fix for v1.6.2
  • Loading branch information
kg-bot authored Dec 17, 2019
2 parents 255453b + f8cc2de commit e408847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Classes/ExportLocalizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ExportLocalizations implements \JsonSerializable
* @param string $phpRegex
* @param string $jsonRegex
*/
public function __construct($phpRegex, $jsonRegex)
public function __construct($phpRegex = '/^.+\.php$/i', $jsonRegex = '/^.+\.json$/i')
{
$this->phpRegex = $phpRegex;
$this->jsonRegex = $jsonRegex;
Expand Down
4 changes: 2 additions & 2 deletions src/LaravelLocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class LaravelLocalizationServiceProvider extends ServiceProvider
public function boot()
{
$this->app->bind('export-localization', function () {
$phpRegex = config('laravel-localization.file_regexp.php');
$jsonRegex = config('laravel-localization.file_regexp.json');
$phpRegex = config('laravel-localization.file_regexp.php', '/^.+\.php$/i');
$jsonRegex = config('laravel-localization.file_regexp.json', '/^.+\.json$/i');

return new ExportLocalizations($phpRegex, $jsonRegex);
});
Expand Down

0 comments on commit e408847

Please sign in to comment.