diff options
Diffstat (limited to 'app/Console')
-rw-r--r-- | app/Console/LocaleComparatorCommand.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Console/LocaleComparatorCommand.php b/app/Console/LocaleComparatorCommand.php index de83714f..fd29d13e 100644 --- a/app/Console/LocaleComparatorCommand.php +++ b/app/Console/LocaleComparatorCommand.php @@ -63,11 +63,11 @@ class LocaleComparatorCommand extends BaseCommand $content = file_get_contents($filename); $strings = array(); - if (preg_match_all('/\b[et]\((\'\K.*?\') *[\)\,]/', $content, $matches) && isset($matches[1])) { + if (preg_match_all('/\b[et]\s*\(\s*(\'\K.*?\')\s*[\)\,]/', $content, $matches) && isset($matches[1])) { $strings = $matches[1]; } - if (preg_match_all('/\bdt\((\'\K.*?\') *[\)\,]/', $content, $matches) && isset($matches[1])) { + if (preg_match_all('/\bdt\s*\(\s*(\'\K.*?\')\s*[\)\,]/', $content, $matches) && isset($matches[1])) { $strings = array_merge($strings, $matches[1]); } |