From ac34c285ab8dc36194c2d336c2aba67e04202670 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 14 Mar 2023 20:45:40 +0100 Subject: [PATCH] try to fix preg match on excluded files --- src/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core.php b/src/Core.php index fb5ecd2..d4e10c4 100644 --- a/src/Core.php +++ b/src/Core.php @@ -25,7 +25,7 @@ class Core { public static function quote_exclude(array $exclude): array { - foreach (My::EXCLUDED_FILES as $k => $v) { + foreach ($exclude as $k => $v) { $exclude[$k] = '#(^|/)(' . str_replace( ['.', '*'], ['\.', '.*?'],