Skip to content

Commit

Permalink
fix html validator
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK committed Sep 9, 2019
1 parent ad9f48d commit 14ad72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LangListService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('~(</?[a-z]+[^>]*?>)~i', $translation, $m);
preg_match_all('~(</?[a-z]+[^>]*?>)~i', $baseTranslation, $m);
$tags = $m[1];
foreach ($tags as $tag) {
if (strpos($translation, $tag) === false) {
Expand Down

0 comments on commit 14ad72e

Please sign in to comment.