Skip to content

Commit

Permalink
adjust RegEx so single quote can be in javascript caption
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Montgomery committed Feb 20, 2012
1 parent e9e0f97 commit f90a3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rules
Expand Up @@ -29,7 +29,7 @@ class Nanoc3::Filter
languages = LANGUAGES.keys.join("|")

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

@pending << match.pre_match

Expand Down

0 comments on commit f90a3a8

Please sign in to comment.