From 7f09faa95476a372ee5a5a2e34a7a9b1d6cbde74 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Tue, 21 Aug 2018 20:09:31 +0530 Subject: [PATCH] Replace regex arg to :gsub with a string arg (#7189) Merge pull request 7189 --- lib/jekyll/tags/include.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 389b6be9..1f47324b 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -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