From f6987c870c3ae9ac9bd34ff96ffe45ec6f5cf56c Mon Sep 17 00:00:00 2001 From: Laura Date: Sat, 20 Sep 2025 22:08:41 +0200 Subject: [PATCH] small fix --- markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.go b/markdown.go index 27ea19f..1472a71 100644 --- a/markdown.go +++ b/markdown.go @@ -84,7 +84,7 @@ func SplitImagePairs(text string) []openrouter.ChatMessagePart { for { location := rgx.FindStringSubmatchIndex(text[index:]) if location == nil { - push(index, len(text)-1) + push(index, len(text)) break }