Skip to content

escape namespaces in regex

Compare
Choose a tag to compare
@ofbeaton ofbeaton released this 02 Feb 16:38
9affb4f

== 0.8.1 (2022-02-02) ==
One of the strengths of the extension is its use of regex on final page HTML to replace user links, making it very robust and require very little in terms of complex hooks, that has kept the extension working for over a decade now without changes to its logic. The downside of course is parsing HTML with regex, a pit of evil for sure.

Thanks to @wgevaert's PR #19, the namespace is now properly escaped before it is inserted into our regex. The risk was always minimal, but better safe then sorry. This release also includes some linting, always a contentious topic. I've not been able to test it, but was assured it was, so I've gone ahead and merged it. I'll revert if we get any bug reports.