Doc: Fix header anchor detection
This commit is contained in:
parent
0e480dd54a
commit
c4e236cce9
|
@ -109,7 +109,7 @@ class DocParser
|
||||||
if ($header === null) {
|
if ($header === null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if ($header[0] === '<'
|
if (strpos($header, '<') !== false
|
||||||
&& preg_match('#(?:<(?P<tag>a|span) (?:id|name)="(?P<id>.+)"></(?P=tag)>)\s*#u', $header, $match)
|
&& preg_match('#(?:<(?P<tag>a|span) (?:id|name)="(?P<id>.+)"></(?P=tag)>)\s*#u', $header, $match)
|
||||||
) {
|
) {
|
||||||
$header = str_replace($match[0], '', $header);
|
$header = str_replace($match[0], '', $header);
|
||||||
|
|
Loading…
Reference in New Issue