mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-06-05 06:50:47 +00:00
fix parsing of single-quoted strings
This commit is contained in:
parent
7edc17b3be
commit
9a2b436cb9
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user