We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46503bf commit 4c073aaCopy full SHA for 4c073aa
src/Parser.php
@@ -357,7 +357,7 @@ private static function parseByteSequence(ParsingInput $input): Bytes
357
$startPosition = $input->position();
358
$input->consumeChar(':');
359
try {
360
- $bytes = $input->consumeRegex('/^([a-z0-9+\/=]*)/i');
+ $bytes = $input->consumeRegex('/^([a-z0-9+\/]*=*)(?=:)/i');
361
362
return new Bytes(base64_decode($bytes));
363
} catch (\RuntimeException) {
0 commit comments