cmd: strip single quotes from image page (#10636)

This commit is contained in:
Bruce MacDonald
2025-05-09 18:05:43 -07:00
committed by GitHub
parent 0d6e35d3c6
commit 3fa78598a1
2 changed files with 25 additions and 0 deletions

View File

@@ -531,6 +531,8 @@ func extractFileData(input string) (string, []api.ImageData, error) {
return "", imgs, err
}
fmt.Fprintf(os.Stderr, "Added image '%s'\n", nfp)
input = strings.ReplaceAll(input, "'"+nfp+"'", "")
input = strings.ReplaceAll(input, "'"+fp+"'", "")
input = strings.ReplaceAll(input, fp, "")
imgs = append(imgs, data)
}