play nice with other implementations that replace " " with "%20"

This commit is contained in:
Lilian Jónsdóttir 2024-06-28 10:45:44 -07:00
parent f9232a095b
commit a3ff94ec8e
3 changed files with 12 additions and 4 deletions

View file

@ -31,5 +31,11 @@ func UnExpand(dir, workdir string) (outdir string) {
outdir = strings.Replace(outdir, home, "~", 1)
outdir = UnEscape(outdir)
return
}
func UnEscape(input string) string {
return strings.ReplaceAll(input, "%20", " ")
}