fix url making
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovic 2025-01-12 01:26:06 +02:00
parent 2bc5419fc4
commit ca57b910de

View file

@ -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]) {