Skip to content

Commit

Permalink
fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhuravlev authored and avelino committed Apr 3, 2023
1 parent 60f3e12 commit 537fa15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions pkg/slug/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit 537fa15

Please sign in to comment.