Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

URL inside parentheses is parsed incorrectly when text immediately follows the closing parenthesis

Open DennisHan1 opened this issue 4 months ago • 1 comments

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

  1. Input text Please refer to the Speedtest Awards page (https://www.speedtest.net/awards/united_states/)for more information.

  2. Expected link https://www.speedtest.net/awards/united_states/

  3. 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

DennisHan1 avatar Jul 31 '26 04:07 DennisHan1

Tracked by #291.

PathGao avatar Jul 31 '26 05:07 PathGao