From 537fa15d0204c2901bd1a3b26fb59a5a9024390b Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Tue, 14 Feb 2023 21:26:37 +0100 Subject: [PATCH] fixme --- main.go | 1 + pkg/slug/generator.go | 1 + 2 files changed, 2 insertions(+) diff --git a/main.go b/main.go index 4deed39da9f..bcd355e7c89 100644 --- a/main.go +++ b/main.go @@ -122,6 +122,7 @@ func mkdirAll(path string) error { } // NOTE: directory is not exists + // FIXME: fix rights if err := os.MkdirAll(path, 0o755); err != nil { return err } diff --git a/pkg/slug/generator.go b/pkg/slug/generator.go index 8bafcf2f7e5..d2f79403c84 100644 --- a/pkg/slug/generator.go +++ b/pkg/slug/generator.go @@ -8,6 +8,7 @@ import ( // Generate slugs similar to GitHub's slugs on markdown parsing func Generate(text string) string { + // FIXME: this is should be like regexp.Replace(`[^-a-zA-Z\d]+`, ``) s := strings.ReplaceAll(text, "/", "") return slugify.Slugify(strings.TrimSpace(s)) }