Skip to content

Commit

Permalink
Merge branch 'master' of https:/bestmomo/laravel-artisan-…
Browse files Browse the repository at this point in the history
  • Loading branch information
bestmomo committed Oct 3, 2019
2 parents 8de477d + 1481dcc commit 05236c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Commands/LanguageBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ protected function getStrings()
{
return collect([
$this->filesystem->allFiles(app_path()),
$this->filesystem->allFiles(resource_path('views'))
$this->filesystem->allFiles(resource_path('views')),
$this->filesystem->allFiles(resource_path('js'))
])
->collapse()
->map(function (SplFileInfo $item) {
preg_match_all(
'/(@lang|__)\s*(\(\s*[\'"])([^$]*)([\'"]\s*\))/U',
'/(@lang|__|\$t|\$tc)\s*(\(\s*[\'"])([^$]*[^.])([\'"].*)\)*/U',
$item->getContents(),
$out,
PREG_PATTERN_ORDER);
Expand Down

0 comments on commit 05236c0

Please sign in to comment.