Skip to content
Snippets Groups Projects
Commit 4780d304 authored by fauno's avatar fauno
Browse files

Issue #3 - Remove trailing dash

parent 0a43dfca
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class PandocGenerator < Generator
filename = post.url.gsub(/\.html$/, ".#{output}")
# Have a filename!
filename = "#{post.url.gsub(/\//, "-")}.#{output}" if filename =~ /\/$/
filename = "#{post.url.gsub(/\//, "-").gsub(/-$/, "")}.#{output}" if filename =~ /\/$/
filename_with_path = File.join(post_path, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment