diff --git a/classes/ThemeScanner.php b/classes/ThemeScanner.php index 0648cca2..196ad5c5 100644 --- a/classes/ThemeScanner.php +++ b/classes/ThemeScanner.php @@ -164,7 +164,7 @@ protected function processStandardTags($content) $quoteChar = preg_quote("'"); - preg_match_all('#{{\s*'.$quoteChar.'([^'.$quoteChar.']+)'.$quoteChar.'\s*[|]\s*_\s*}}#', $content, $match); + preg_match_all('#{{\s*'.$quoteChar.'([^'.$quoteChar.']+)'.$quoteChar.'\s*[|]\s*_\s*(?:[|].+)?}}#', $content, $match); if (isset($match[1])) { $messages = array_merge($messages, $match[1]); } @@ -176,7 +176,7 @@ protected function processStandardTags($content) $quoteChar = preg_quote('"'); - preg_match_all('#{{\s*'.$quoteChar.'([^'.$quoteChar.']+)'.$quoteChar.'\s*[|]\s*_\s*}}#', $content, $match); + preg_match_all('#{{\s*'.$quoteChar.'([^'.$quoteChar.']+)'.$quoteChar.'\s*[|]\s*_\s*(?:[|].+)?}}#', $content, $match); if (isset($match[1])) { $messages = array_merge($messages, $match[1]); }