Skip to content

Commit

Permalink
lowercase slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Sep 1, 2022
1 parent 4f8faec commit 751cb25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/gather/gather.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func slugifyFile(name: String) -> String {
var slug = name.trimmingCharacters(in: .whitespacesAndNewlines)
slug = slug.replacingOccurrences(of: #"[^a-z0-9]"#, with: "-", options: [.regularExpression, .caseInsensitive])
slug = slug.replacingOccurrences(of: #"-+"#, with: "-", options: .regularExpression)
return slug.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
return slug.trimmingCharacters(in: CharacterSet.alphanumerics.inverted).lowercased()
}

func createUrlScheme(template: String, markdown: String, title: String?, notebook: String?, source: String?) -> String {
Expand Down
Binary file modified buildnotes.md.secret
Binary file not shown.

0 comments on commit 751cb25

Please sign in to comment.