php-autolink icon indicating copy to clipboard operation
php-autolink copied to clipboard

Breaks on encountering punctuation characters, e.g. ’

Open amphibian opened this issue 3 months ago • 0 comments

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.

amphibian avatar Sep 17 '25 14:09 amphibian