mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
Use #tr instead of #gsub
This commit is contained in:
@@ -46,7 +46,7 @@ module Jekyll
|
||||
# Returns the _unsanitizied_ String URL
|
||||
def generate_url
|
||||
@placeholders.inject(@template) do |result, token|
|
||||
result.gsub(/:#{token.first}/, self.class.escape_path(token.last))
|
||||
result.tr(":#{token.first}", self.class.escape_path(token.last))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user