In DText links, ) are only considered part of a URL if a ( was found previously in that URL, preventing URLs inside parentheses from being mangled. However, if another character is included immediately after that ), it instead considers the ) part of the URL.
These characters simply cause the ) to become part of the URL:
Additionally, these characters are even weirder, considering both the ) and the next character part of the URL, but then printing the ) afterward:
Expected output for all of those is that neither the ) or the next character are part of the URL, instead being printed afterward in plain text.
With only whitespace after the ), it works as expected:
See?)
Updated