Skip to content

Commit

Permalink
Tweak to allow matching delimiter within the string
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Aug 22, 2021
1 parent 54da245 commit dd90652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Composer/Autoload/ClassMapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ private static function findClasses($path)
(?:
# 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 ]+
)
Expand Down

0 comments on commit dd90652

Please sign in to comment.