Skip to content

Commit

Permalink
Apply tidy to SKIPIF and CLEAN section as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Sep 18, 2020
1 parent 0582c40 commit bfceb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dev/tidy.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function transformTestCode(string $code, callable $transformer): string {
}

return preg_replace_callback(
'/(--FILE--)(.+?)(--[A-Z_]+--)/s',
'/(--(?:FILE|SKIPIF|CLEAN)--)(.+?)(--[A-Z_]+--)/s',
function(array $matches) use($transformer) {
return $matches[1] . $transformer($matches[2]) . $matches[3];
},
Expand Down

0 comments on commit bfceb71

Please sign in to comment.