diff --git a/Grabazine.go b/Grabazine.go index 98e2775..071151f 100644 --- a/Grabazine.go +++ b/Grabazine.go @@ -6,6 +6,7 @@ import ( "flag" "fmt" wkhtml "github.com/SebastiaanKlippert/go-wkhtmltopdf" + "github.com/icza/gox/stringsx" "github.com/pdfcpu/pdfcpu/pkg/api" "github.com/tidwall/gjson" "io/ioutil" @@ -418,5 +419,8 @@ func RemoveBadCharacters(input string) string { for _, badChar := range badCharacters { temp = strings.Replace(temp, badChar, "_", -1) } + + temp = stringsx.Clean(temp) + return temp } diff --git a/built/Zinigo_Linux_AMD64 b/built/Zinigo_Linux_AMD64 index 79ffc53..91eaafa 100644 Binary files a/built/Zinigo_Linux_AMD64 and b/built/Zinigo_Linux_AMD64 differ diff --git a/built/Zinigo_Windows_x64.exe b/built/Zinigo_Windows_x64.exe index d6bd024..c7a37c4 100644 Binary files a/built/Zinigo_Windows_x64.exe and b/built/Zinigo_Windows_x64.exe differ