run modernize

This commit is contained in:
Kovid Goyal 2025-11-11 17:09:37 +05:30
parent 1faf786bd2
commit 6f588a0c29
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
30 changed files with 46 additions and 60 deletions

View file

@ -79,7 +79,7 @@ func process_escape_codes(text string) (ans string, hyperlinks []Mark) {
active_hyperlink_url = url
active_hyperlink_start_offset = start
if metadata != "" {
for _, entry := range strings.Split(metadata, ":") {
for entry := range strings.SplitSeq(metadata, ":") {
if strings.HasPrefix(entry, "id=") && len(entry) > 3 {
active_hyperlink_id = entry[3:]
}