lib/asciidoctor/extensions.rb in asciidoctor-2.0.7 vs lib/asciidoctor/extensions.rb in asciidoctor-2.0.8
- old
+ new
@@ -620,10 +620,10 @@
@config[:regexp] ||= resolve_regexp @name.to_s, @config[:format]
end
def resolve_regexp name, format
raise ::ArgumentError, %(invalid name for inline macro: #{name}) unless MacroNameRx.match? name
- @@rx_cache[[name, format]] ||= /\\?#{name}:#{format == :short ? '(){0}' : '(\S+?)'}\[(|.*?[^\\])\]/
+ @@rx_cache[[name, format]] ||= /\\?#{name}:#{format == :short ? '(){0}' : '(\S+?)'}\[(|#{CC_ANY}*?[^\\])\]/
end
end
module InlineMacroProcessorDsl
include MacroProcessorDsl