URL inside parentheses is parsed incorrectly when text immediately follows the closing parenthesis
Describe the bug URL inside parentheses is parsed incorrectly when text immediately follows the closing parenthesis
To Reproduce I found an issue with automatic URL detection.
When a URL is enclosed in parentheses and the closing parenthesis is immediately followed by text without a space, the link parser incorrectly includes the closing parenthesis and the following text as part of the URL.
As a result, the generated link points to an invalid address.
Expected behavior
-
Input text Please refer to the Speedtest Awards page (https://www.speedtest.net/awards/united_states/)for more information.
-
Expected link https://www.speedtest.net/awards/united_states/
-
Actual link https://www.speedtest.net/awards/united_states/)for
Screenshots [If applicable, add screenshots to help explain your problem.]
Device
- OS: Windows
- Version 11
- App Version v2.6.13
Additional context
Tracked by #291.