lib/asciidoctor/rx.rb in asciidoctor-2.0.20 vs lib/asciidoctor/rx.rb in asciidoctor-2.0.21
- old
+ new
@@ -511,15 +511,15 @@
#
# Examples
#
# https://github.com
# https://github.com[GitHub]
- # <https://github.com>
+ # <https://github.com> <= angle brackets not included in autolink
# link:https://github.com[]
# "https://github.com[]"
# (https://github.com) <= parenthesis not included in autolink
#
- InlineLinkRx = %r((^|link:|#{CG_BLANK}|<|[>\(\)\[\];"'])(\\?(?:https?|file|ftp|irc)://)(?:([^\s\[\]]+)\[(|#{CC_ALL}*?[^\\])\]|([^\s\[\]<]*([^\s,.?!\[\]<\)]))))m
+ InlineLinkRx = %r((^|link:|#{CG_BLANK}|\\?<()|[>\(\)\[\];"'])(\\?(?:https?|file|ftp|irc)://)(?:([^\s\[\]]+)\[(|#{CC_ALL}*?[^\\])\]|\2([^\s]*?)>|([^\s\[\]<]*([^\s,.?!\[\]<\)]))))m
# Match a link or e-mail inline macro.
#
# Examples
#