Replace regex arg to :gsub with a string arg (#7189)

Merge pull request 7189
This commit is contained in:
Ashwin Maroli 2018-08-21 20:09:31 +05:30 committed by jekyllbot
parent 3f62fd96d3
commit 7f09faa954
1 changed files with 2 additions and 2 deletions

View File

@ -41,9 +41,9 @@ module Jekyll
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