Skip to content

Breaks on encountering punctuation characters, e.g. ’ #21

@amphibian

Description

@amphibian

As \p{P} is not included in the URL regex, a URL such as https://www.gallerieswest.ca/magazine/stories/manitoba’s-métis-history/ gets incompletely linked.

Adding \p{P} to the regex fixes this issue. Whether it's "valid" for a URL to contain such a characters is maybe a reasonable question, but CMS' are out here doing it, so it makes sense to cover that scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions