Fix translation string extractor for special characters
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
2a8bed8b5e
Коммит
e1b8672d9a
|
@ -27,7 +27,7 @@ class TranslationExtractor {
|
|||
}
|
||||
|
||||
private function extractTranslationString($line) {
|
||||
$regex = '/\{\{\s*t\s*[\'\"]([\w\d\s,.]*)[\'\"]\s*\}\}/';
|
||||
$regex = '/\{\{\s*t\s*[\'\"]([\w\d\s,.!?]*)[\'\"]\s*\}\}/';
|
||||
$matches = [];
|
||||
preg_match_all($regex, $line, $matches);
|
||||
$strings = [];
|
||||
|
|
Загрузка…
Ссылка в новой задаче