Skip to content

Commit 22a160c

Browse files
authored
Remove redundant escapes inside regexp literal
1 parent df294bb commit 22a160c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/jekyll_seo_tag_integration_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
let(:tag) { "seo" }
99
let(:text) { "" }
1010
let(:output) { Liquid::Template.parse("{% #{tag} #{text} %}").render!(context, {}) }
11-
let(:json) { output.match(%r!<script type=\"application/ld\+json\">(.*)</script>!m)[1] }
11+
let(:json) { output.match(%r!<script type="application/ld\+json">(.*)</script>!m)[1] }
1212
let(:json_data) { JSON.parse(json) }
1313
let(:paginator) { { "previous_page" => true, "previous_page_path" => "foo", "next_page" => true, "next_page_path" => "bar" } }
1414

0 commit comments

Comments
 (0)