Skip to content

[BUG] @ breaks highlighting in hyperlinks #3327

@plutonium-239

Description

@plutonium-239

Describe the bug

Hyperlinks containing an @ symbol are not properly highlighted.
It is a valid character used by multiple large websites (youtube and twitter should be enough of an example)

Screenshot with minimal code:
image

Expected: The whole link to be highlighted instead of just before the @

Platform

Click to expand

Windows 10, Windows Terminal v1.19, Python 3.8.6

python -m rich.diagnose
image
image

pip freeze | grep rich
rich==13.7.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions