Skip to content

Commit f90a3a8

Browse files
author
Connor Montgomery
committed
adjust RegEx so single quote can be in javascript caption
1 parent e9e0f97 commit f90a3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Nanoc3::Filter
2929
languages = LANGUAGES.keys.join("|")
3030

3131
until @string.empty?
32-
match = scan_until /(\+(\S.*?\S?)\+|<(#{languages})(?: filename=["']([^"']*)["'])?(?: caption=["']([^"']*)["'])?>|\z)/m
32+
match = scan_until /(\+(\S.*?\S?)\+|<(#{languages})(?: filename=["']([^"']*)["'])?(?: caption=["]([^"]*)["])?>|\z)/m
3333

3434
@pending << match.pre_match
3535

0 commit comments

Comments
 (0)