diff --git a/src/LangListService.php b/src/LangListService.php index 3eb0e45..270d88e 100644 --- a/src/LangListService.php +++ b/src/LangListService.php @@ -166,7 +166,7 @@ public function validateHTML($targetTranslations, $baseTranslations) foreach ($translations as $key => $translation) { if (isset($baseTranslations[$group][$key]) && is_string($baseTranslations[$group][$key])) { $baseTranslation = $baseTranslations[$group][$key]; - preg_match_all('~(]*?>)~i', $translation, $m); + preg_match_all('~(]*?>)~i', $baseTranslation, $m); $tags = $m[1]; foreach ($tags as $tag) { if (strpos($translation, $tag) === false) {