From dff8047afe7caf828bb9192919c9f03ffd4d0663 Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 8 Mar 2024 03:11:10 +0800 Subject: [PATCH] chore: tidy codes Signed-off-by: Jack Cherng --- tests/DiffHelperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DiffHelperTest.php b/tests/DiffHelperTest.php index de13044..2ea5886 100644 --- a/tests/DiffHelperTest.php +++ b/tests/DiffHelperTest.php @@ -94,7 +94,7 @@ public static function provideRendererOutputCases(): iterable protected static function findRendererOutputTestFiles(string $rendererName): array { $rendererNameRegex = preg_quote($rendererName, '/'); - $fileNameRegex = "/{$rendererNameRegex}-(?P[0-9]+)-(?P[^.\\-]+)\\.txt$/u"; + $fileNameRegex = "/{$rendererNameRegex}-(?P[0-9]+)-(?P[^.-]+)\\.txt$/u"; $finder = (new Finder()) ->files()