31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-26 08:02:35 +00:00

fix processing of escaped characters in strings

This commit is contained in:
Denis Ryabov 2022-08-03 16:26:57 +03:00
parent a243f9b665
commit 227b182bd7

View File

@ -309,7 +309,7 @@ abstract class JEDCheckerHelper
$pos = 0;
$cleanContent = '';
while (preg_match('/\n|\\|\{\$|\$\{/', $content, $match, PREG_OFFSET_CAPTURE, $pos))
while (preg_match('/\n|\\\\|\{\$|\$\{/', $content, $match, PREG_OFFSET_CAPTURE, $pos))
{
$foundPos = $match[0][1];
$cleanContent .= substr($content, $pos, $foundPos - $pos);