Skip to content

Commit f8cc2de

Browse files
authored
Add default values for configuration options in bound class
1 parent 345a092 commit f8cc2de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaravelLocalizationServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class LaravelLocalizationServiceProvider extends ServiceProvider
1818
public function boot()
1919
{
2020
$this->app->bind('export-localization', function () {
21-
$phpRegex = config('laravel-localization.file_regexp.php');
22-
$jsonRegex = config('laravel-localization.file_regexp.json');
21+
$phpRegex = config('laravel-localization.file_regexp.php', '/^.+\.php$/i');
22+
$jsonRegex = config('laravel-localization.file_regexp.json', '/^.+\.json$/i');
2323

2424
return new ExportLocalizations($phpRegex, $jsonRegex);
2525
});

0 commit comments

Comments
 (0)