diff --git a/src/Command/TranslationHelperCommand.php b/src/Command/TranslationHelperCommand.php index 0ed7062..2bebed2 100644 --- a/src/Command/TranslationHelperCommand.php +++ b/src/Command/TranslationHelperCommand.php @@ -102,7 +102,7 @@ private function getTranslationKeysFromFunction(&$keys, $functionName, $content) { $matches = []; - preg_match_all("#{$functionName}\(\'(.*?)\'\)#", $content, $matches); + preg_match_all("#{$functionName}\(\s*\'(.*?)\'\s*[\)\,]#", $content, $matches); if (! empty($matches)) { foreach ($matches[1] as $match) {