Skip to content

Commit

Permalink
tanmuhittin#44 - Should handle resources/views/vendor// and resources…
Browse files Browse the repository at this point in the history
…/lang/vendor//lang.json
  • Loading branch information
itsrexb committed Aug 8, 2022
1 parent f22cd89 commit 65a3dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TranslationFileTranslators/JsonArrayFileTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function explore_strings()
"\k{quote}" . // Match " or ' previously matched
"[\),]"; // Close parentheses or new parameter
$finder = new Finder();
$finder->in(base_path())->exclude('storage')->exclude('vendor')->name('*.php')->name('*.twig')->name('*.vue')->files();
$finder->in(base_path())->exclude('storage')->exclude('vendor')->in(base_path().DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'vendor')->name('*.php')->name('*.twig')->name('*.vue')->files();
/** @var \Symfony\Component\Finder\SplFileInfo $file */
foreach ($finder as $file) {
// Search the current file for the pattern
Expand Down

0 comments on commit 65a3dcd

Please sign in to comment.