try to ignore images for now
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovic 2023-02-14 17:46:31 +02:00
parent 8a261a6ca1
commit 5b349dcc2e

View file

@ -26,7 +26,8 @@ func (fileContent *FileContent) FormatContent() string {
var buffer []byte
data := []byte(content)
re := regexp.MustCompile(`(?<!!)\[([^\]*]*)\]\(([^ ]*)\)`)
re := regexp.MustCompile(`!?\[([^\]*]*)\]\(([^ ]*)\)`)
//re := regexp.MustCompile(`(?<!!)\[([^\]*]*)\]\(([^ ]*)\)`)
//re := regexp.MustCompile(`!\[([^\]*]*)\]\(([^ ]*)\)`) -- image
for i, match := range re.FindAllSubmatch(data, -1) {