Skip to content

Commit

Permalink
keep quote
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 4, 2024
1 parent 8eea19f commit cd74dcf
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 cd74dcf

Please sign in to comment.