lib/asciidoctor/rx.rb in asciidoctor-2.0.15 vs lib/asciidoctor/rx.rb in asciidoctor-2.0.16
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
module Asciidoctor
# A collection of regular expression constants used by the parser. (For speed, these are not defined in the Rx module,
# but rather directly in the Asciidoctor module).
#
# NOTE The following pattern, which appears frequently, captures the contents between square brackets, ignoring
@@ -467,10 +468,10 @@
# footnote:id[text] (referenceable)
# footnote:id[] (reference)
# footnoteref:[id,text] (legacy)
# footnoteref:[id] (legacy)
#
- InlineFootnoteMacroRx = /\\?footnote(?:(ref):|:([#{CC_WORD}-]+)?)\[(?:|(#{CC_ALL}*?[^\\]))\](?!<\/a>)/m
+ InlineFootnoteMacroRx = %r(\\?footnote(?:(ref):|:([#{CC_WORD}-]+)?)\[(?:|(#{CC_ALL}*?[^\\]))\](?!</a>))m
# Matches an image or icon inline macro.
#
# Examples
#