From ca57b910de0502c5fc963305f6ed64fb38eff334 Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Sun, 12 Jan 2025 01:26:06 +0200 Subject: [PATCH] fix url making --- formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formatter.go b/formatter.go index dbb6676..1b6e5e2 100644 --- a/formatter.go +++ b/formatter.go @@ -26,7 +26,7 @@ func (fileContent *FileContent) FormatContent() string { var buffer []byte data := []byte(content) - re := regexp.MustCompile(`!?\[([^\]*]*)\]\(([^ ]*)\)`) + re := regexp.MustCompile(`!?\[([^\]*]*)\]\(([^ ]*?)\)`) for i, match := range re.FindAllSubmatch(data, -1) { if "!" == string(match[0][0:1]) {