Skip to content

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

Description

@DennisHan1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions