From f6c446bdd71d568c04e3c02a0aac0169e9575f99 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 22 Aug 2021 12:13:25 +0200 Subject: [PATCH] Tweak to allow matching delimiter within the string --- src/Composer/Autoload/ClassMapGenerator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Autoload/ClassMapGenerator.php b/src/Composer/Autoload/ClassMapGenerator.php index b493e1ddc..b37fb25ca 100644 --- a/src/Composer/Autoload/ClassMapGenerator.php +++ b/src/Composer/Autoload/ClassMapGenerator.php @@ -257,8 +257,8 @@ class ClassMapGenerator (?: # non-word or non-space char, then anything goes for the rest of the line [^\s\w][^\r\n]+ - # white-space (possessive match) not followed by the delimiter, then anything goes for the rest of the line - | \s*+(?!\\2)[^\r\n]+ + # white-space (possessive match) not followed by the end delimiter, then anything goes for the rest of the line + | \s*+(?!\\2 \s*[;,.)])[^\r\n]+ # white-space but no new lines | [\t\f\v ]+ )