Skip to content

Commit

Permalink
Fix to_filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Nov 26, 2017
1 parent faade66 commit eda4597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
BetterErrors.application_root = File.expand_path(".")

# puma autoload warnings
require 'tilt/erubis'
require "tilt/erubis"
end

# require things
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/05-string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def to_paragraphs(split="\n")
end

def to_filename
self.to_line.gsub(/[*?"<>|]/, "").gsub(":", ".").gsub(/[\/\\]/, "-").gsub(/\t+/, " ").gsub(/\.+(\.[a-z]+)$/, '\1')
self.to_line.gsub(/[*?"<>|]/, "").gsub(":", ".").gsub(/[\/\\]/, "-").gsub(/\t+/, " ").gsub(/\.+(\.[a-z0-9]+)$/, '\1')
end

def titelize
Expand Down

0 comments on commit eda4597

Please sign in to comment.