Skip to content

colon at the end of link with numbers does not correctly parse #113

@Amzd

Description

@Amzd

test123.com:

expected:

[
    {
        "t": "Link",
        "c": {
            "destination": {
                "target": "test123.com",
                "hostname": "test123.com"
            }
        }
    },
    {
        "t": "Text",
        "c": ":"
    },
    {
        "t": "Linebreak"
    }
]

actual:

[
    {
        "t": "Text",
        "c": "test"
    },
    {
        "t": "Link",
        "c": {
            "destination": {
                "target": "123.com",
                "hostname": "123.com:",
                "punycode": {
                    "original_hostname": "123.com:",
                    "ascii_hostname": "123.xn--com:-",
                    "punycode_encoded_url": "123.com"
                }
            }
        }
    },
    {
        "t": "Text",
        "c": ":"
    },
    {
        "t": "Linebreak"
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions