Skip to content

Commit 40d2181

Browse files
Merge pull request #12 from ETSGlobal/fix-file-finder
Fixed filer to accept anything before the first dot
2 parents 8415a67 + 85ba131 commit 40d2181

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Command/ImportCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function getTranslationFileList($bundle, $filterLocaleName = null, $fi
179179
}
180180

181181
$finder = new Finder();
182-
$finder->files()->in($translationPath)->name('/^[\w]+\.[a-z_]{2,7}\.[a-z]{2,5}$/');
182+
$finder->files()->in($translationPath)->name('/^.+\.[a-z_]{2,7}\.[a-z]{2,5}$/');
183183

184184
foreach ($finder as $translationFile) {
185185
$translationFilePath = $translationFile->getRealPath();

0 commit comments

Comments
 (0)