diff --git a/main.go b/main.go index 4deed39d..bcd355e7 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 8bafcf2f..d2f79403 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)) }