33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-30 16:53:59 +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; $pos = 0;
$cleanContent = ''; $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]; $foundPos = $match[0][1];
$cleanContent .= substr($content, $pos, $foundPos - $pos); $cleanContent .= substr($content, $pos, $foundPos - $pos);