aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-cleanup
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-06-10 02:27:27 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-06-10 02:27:27 +0200
commit4044d9753da11e7e66234621f52b3dcd04f73b41 (patch)
treee674df9e7377b0de6073147a0c1a33ce0754592d /skate/cmd/skate-cleanup
parentea784a826b6d0160575121f245675086b3dfc130 (diff)
downloadrefcat-4044d9753da11e7e66234621f52b3dcd04f73b41.tar.gz
refcat-4044d9753da11e7e66234621f52b3dcd04f73b41.zip
url: trim prefix
Diffstat (limited to 'skate/cmd/skate-cleanup')
-rw-r--r--skate/cmd/skate-cleanup/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/skate/cmd/skate-cleanup/main.go b/skate/cmd/skate-cleanup/main.go
index 033b0bc..72b258a 100644
--- a/skate/cmd/skate-cleanup/main.go
+++ b/skate/cmd/skate-cleanup/main.go
@@ -40,7 +40,7 @@ var (
func main() {
flag.Parse()
for _, v := range strings.Split(*allow, ",") {
- allowedSchemas = append(allowedSchemas, v)
+ allowedSchemas = append(allowedSchemas, strings.TrimSpace(v))
}
var f func([]byte) ([]byte, error)
switch *what {