Skip to content

Commit

Permalink
extra slash
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 8, 2024
1 parent 0022ccd commit 0d610cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function (string $filePath, string $prefix, string $content): string {
return preg_replace_callback('#DEFAULT_TYPES_TO_SKIP = (?<content>.*?)\;#ms', function (array $match) use (
$prefix
) {
$unprefixedValue = preg_replace('#' . $prefix . '\\\\#', '', $match['content']);
$unprefixedValue = preg_replace('#\\\\' . $prefix . '\\\\#', '', $match['content']);
return 'DEFAULT_TYPES_TO_SKIP = ' . $unprefixedValue . ';';
}, $content);
},
Expand Down

0 comments on commit 0d610cf

Please sign in to comment.