From dfc69140fe720b169b978b18b7863611cc0d8077 Mon Sep 17 00:00:00 2001 From: John Stevenson Date: Fri, 26 Feb 2021 15:26:47 +0000 Subject: [PATCH] Fix compiler on Windows (#9730) --- src/Composer/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index a31aff946..380f13b3a 100644 --- a/src/Composer/Compiler.php +++ b/src/Composer/Compiler.php @@ -135,7 +135,7 @@ class Compiler foreach ($finder as $file) { if (in_array(realpath($file), $extraFiles, true)) { unset($extraFiles[array_search(realpath($file), $extraFiles, true)]); - } elseif (!preg_match('{(/LICENSE|\.php)$}', $file)) { + } elseif (!preg_match('{([/\\\\]LICENSE|\.php)$}', $file)) { $unexpectedFiles[] = (string) $file; }