Skip to content

Commit

Permalink
authority can contain spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Mar 14, 2021
1 parent dacb2c5 commit f6abb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Remote/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function testSocket()
->with(
'Opening remote socket at {address}',
$this->callback(static function($context) use ($transport, $authority) {
return (bool) \preg_match('~^[a-z\.0-9]+://\S+$~', $context['address']) &&
return (bool) \preg_match('~^[a-z\.0-9]+://.+$~', $context['address']) &&
\strpos($context['address'], $transport->toString()) === 0 &&
\strpos($context['address'], $authority->toString()) !== false;
}),
Expand Down

0 comments on commit f6abb6a

Please sign in to comment.