diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-18 12:17:07 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-18 14:28:14 +0200 |
commit | bfceb710becab71d7d561d64667be4c9668b6a9c (patch) | |
tree | 8abbc252b7b97c3408a1169fdffb3d7548364847 /scripts/dev/tidy.php | |
parent | 0582c40907649f2e86f3b75617e814427da1ce3f (diff) | |
download | php-git-bfceb710becab71d7d561d64667be4c9668b6a9c.tar.gz |
Apply tidy to SKIPIF and CLEAN section as well
Diffstat (limited to 'scripts/dev/tidy.php')
-rw-r--r-- | scripts/dev/tidy.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dev/tidy.php b/scripts/dev/tidy.php index 3829f9092e..7ec9f7902d 100644 --- a/scripts/dev/tidy.php +++ b/scripts/dev/tidy.php @@ -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]; }, |