Skip to content

Commit

Permalink
Fix quote issue in windows filenames
Browse files Browse the repository at this point in the history
closes #29
  • Loading branch information
elboletaire committed Mar 20, 2024
1 parent cb930b9 commit 6f4b382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build/unix:
CGO_ENABLED=0 go build -o manga-downloader ${GOFLAGS} .

build/win:
go build -o manga-downloader.exe ${GOFLAGS} .
GOOS=windows go build -o manga-downloader.exe ${GOFLAGS} .

test:
ifdef RICHGO
Expand Down
1 change: 1 addition & 0 deletions packer/filename.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func SanitizeFilename(filename string) string {
sanitized = strings.Replace(sanitized, "\\", "_", -1)
sanitized = strings.Replace(sanitized, ":", ";", -1)
sanitized = strings.Replace(sanitized, "?", "驴", -1)
sanitized = strings.Replace(sanitized, `"`, "'", -1)

return sanitized
}

0 comments on commit 6f4b382

Please sign in to comment.