Improved the regex for searching i18n strings in templates
This commit is contained in:
@@ -174,7 +174,7 @@ class TemplateHelper
|
|||||||
|
|
||||||
$allowed_exts = array('php');
|
$allowed_exts = array('php');
|
||||||
} elseif ($walkMode == self::WALK_MODE_TEMPLATE) {
|
} elseif ($walkMode == self::WALK_MODE_TEMPLATE) {
|
||||||
$prefix = "\\{intl(?:.*?)l=";
|
$prefix = '\{intl(?:.*?)l=[\s]*';
|
||||||
|
|
||||||
$allowed_exts = array('html', 'tpl', 'xml');
|
$allowed_exts = array('html', 'tpl', 'xml');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user