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:
parent
bde621e4c4
commit
5db3687892
@ -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]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user