33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-30 16:53:59 +00:00

fix parsing of single-quoted strings

This commit is contained in:
Denis Ryabov 2021-08-31 11:52:10 +03:00
parent 7edc17b3be
commit 9a2b436cb9

View File

@ -199,7 +199,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule
$value = ltrim($value);
// Parse multiline values
while (!preg_match('/^((?>\'(?>[^\'\\\\]+|\\\\.)*\'|"(?>[^"\\\\]+|\\\\.)*"|[^\'";]+)*)(;.*)?$/', $value, $matches))
while (!preg_match('/^((?>\'[^\']*\'|"(?>[^"\\\\]+|\\\\.)*"|[^\'";]+)*)(;.*)?$/', $value, $matches))
{
if ($lineno + 1 >= $nLines)
{