From bfceb710becab71d7d561d64667be4c9668b6a9c Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 18 Sep 2020 12:17:07 +0200 Subject: Apply tidy to SKIPIF and CLEAN section as well --- scripts/dev/tidy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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]; }, -- cgit v1.2.1