lib/asciidoctor/rx.rb in asciidoctor-2.0.8 vs lib/asciidoctor/rx.rb in asciidoctor-2.0.9
- old
+ new
@@ -545,13 +545,14 @@
# Matches a menu inline macro.
#
# Examples
#
# menu:File[Save As...]
+ # menu:Edit[]
# menu:View[Page Style > No Style]
# menu:View[Page Style, No Style]
#
- InlineMenuMacroRx = /\\?menu:(#{CG_WORD}|[#{CC_WORD}&][^\n\[]*[^\s\[])\[ *(#{CC_ALL}*?[^\\])?\]/m
+ InlineMenuMacroRx = /\\?menu:(#{CG_WORD}|[#{CC_WORD}&][^\n\[]*[^\s\[])\[ *(?:|(#{CC_ALL}*?[^\\]))?\]/m
# Matches an implicit menu inline macro.
#
# Examples
#