Replace regex arg to :gsub with a string arg (#7189)
Merge pull request 7189
This commit is contained in:
parent
3f62fd96d3
commit
7f09faa954
|
@ -41,9 +41,9 @@ module Jekyll
|
||||||
markup = markup[match.end(0)..-1]
|
markup = markup[match.end(0)..-1]
|
||||||
|
|
||||||
value = if match[2]
|
value = if match[2]
|
||||||
match[2].gsub(%r!\\"!, '"')
|
match[2].gsub('\\"', '"')
|
||||||
elsif match[3]
|
elsif match[3]
|
||||||
match[3].gsub(%r!\\'!, "'")
|
match[3].gsub("\\'", "'")
|
||||||
elsif match[4]
|
elsif match[4]
|
||||||
context[match[4]]
|
context[match[4]]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue