Skip to content

Commit

Permalink
simplify fetch command, less backtracking, causes errors with large m…
Browse files Browse the repository at this point in the history
…essages (#82)
  • Loading branch information
frederikbosch authored Sep 28, 2020
1 parent 240c224 commit 184e1fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __toString(): string
public static function fromString(string $response): self
{
$matches = [];
$result = \preg_match('/^([0-9]+) FETCH ((\()?.*?(\))?)\s*$/s', $response, $matches);
$result = \preg_match('/^([0-9]+) FETCH (.*?)$/s', $response, $matches);
if ($result !== 1) {
throw new \InvalidArgumentException('Not a fetch command');
}
Expand Down

0 comments on commit 184e1fc

Please sign in to comment.