We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9329710 + 4c073aa commit babfee9Copy full SHA for babfee9
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