Skip to content

Commit

Permalink
Replace regex arg to :gsub with a string arg (#7189)
Browse files Browse the repository at this point in the history
Merge pull request 7189
  • Loading branch information
ashmaroli authored and jekyllbot committed Aug 21, 2018
1 parent 3f62fd9 commit 7f09faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jekyll/tags/include.rb
Expand Up @@ -41,9 +41,9 @@ def parse_params(context)
markup = markup[match.end(0)..-1]

value = if match[2]
match[2].gsub(%r!\\"!, '"')
match[2].gsub('\\"', '"')
elsif match[3]
match[3].gsub(%r!\\'!, "'")
match[3].gsub("\\'", "'")
elsif match[4]
context[match[4]]
end
Expand Down

0 comments on commit 7f09faa

Please sign in to comment.