Whitespace matching in terms

Created on 15 October 2013, over 11 years ago
Updated 3 February 2025, 2 months ago

I was doing some testing with the module and ran across a problem related to the regex pattern in the _glossify_to_links function.

The \s+ whitespace match was matching across newlines in my example text which threw an error on line 298 when it came time to create the link, and also prevented it from matching the proper term which followed. replaced it with [^\S\r\n]+ which matches whitespace but not \n or \r and that took care of my problem. I made that change in lines, 261, 262 and 286.

🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇨🇦Canada eric.goodwin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024