Improved the translatable text recognition regex

This commit is contained in:
Franck Allimant
2013-11-06 22:56:00 +01:00
parent 907802b5cb
commit 542c4d1641

View File

@@ -171,7 +171,7 @@ class TemplateHelper
$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]);