]> granicus.if.org Git - php/commitdiff
Apply tidy to SKIPIF and CLEAN section as well
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Sep 2020 10:17:07 +0000 (12:17 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Sep 2020 12:28:14 +0000 (14:28 +0200)
scripts/dev/tidy.php

index 3829f9092ec2341c774e36209c5a8436d05b7347..7ec9f7902d662ab5acb0f8f7597c30cb9694cb90 100644 (file)
@@ -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];
         },