1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

$matches is guarenteed to contain data for the full pattern

This commit is contained in:
Aidan Woods 2019-09-09 23:26:21 +01:00
parent bde621e4c4
commit 5db3687892
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -44,6 +44,7 @@ final class Url implements BacktrackingInline
$matches,
\PREG_OFFSET_CAPTURE
)) {
/** @var array{0: array{string, int}} $matches */
return new self($matches[0][0], \intval($matches[0][1]));
}