Improved the translatable text recognition regex
This commit is contained in:
@@ -171,7 +171,7 @@ class TemplateHelper
|
|||||||
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
|
|
||||||
if (preg_match_all('/'.$prefix.'((?<![\\\\])[\'"])((?:.(?!(?<![\\\\])\1))*.?)\1/', $content, $matches)) {
|
if (preg_match_all('/'.$prefix.'((?<![\\\\])[\'"])((?:.(?!(?<![\\\\])\1))*.?)\1/ms', $content, $matches)) {
|
||||||
|
|
||||||
Tlog::getInstance()->debug("Strings found: ", $matches[2]);
|
Tlog::getInstance()->debug("Strings found: ", $matches[2]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user