Skip to content

Commit

Permalink
Strip / and \ in to_filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Nov 19, 2016
1 parent 92faa19 commit c849259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/05-string.rb
Expand Up @@ -12,7 +12,7 @@ def to_paragraphs(split="\n")
end

def to_filename
self.to_line.gsub(/[*?"<>|]/, "").gsub(":", ".").gsub(/\t+/, " ")
self.to_line.gsub(/[*?"<>|]/, "").gsub(":", ".").gsub(/[\/\\]/, "-").gsub(/\t+/, " ")
end

def esc
Expand Down

0 comments on commit c849259

Please sign in to comment.