Skip to content

Commit b109d30

Browse files
committed
Fixed code in the header
1 parent 5b1817f commit b109d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghdoc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (doc *GHDoc) GrabToc() *GHToc {
184184
`(?P<name>.*?)<span`
185185
}
186186
if doc.reVersion == internal.GH_2024_03 {
187-
re = `(?si)<h(?P<num>[1-6]) class="heading-element">(?P<name>[^<]+)</h\d>` +
187+
re = `(?si)<h(?P<num>[1-6]) class="heading-element">(?P<name>.*?)</h\d>` +
188188
`<a\s*id="user-content-[^"]*"\s*` +
189189
`class="[^"]*"\s*` +
190190
`aria-label="[^"]*"\s*` +

0 commit comments

Comments
 (0)