Jun. 5th, 2020

github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
[personal profile] github
Branch: refs/heads/master
Home: https://github.com/dreamwidth/dw-free
Commit: 5f2a874af92491b2c8b59fae8a1c26a0dacbd845
https://github.com/dreamwidth/dw-free/commit/5f2a874af92491b2c8b59fae8a1c26a0dacbd845
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-05 (Fri, 05 Jun 2020)

Changed paths:
M cgi-bin/LJ/CleanHTML.pm

Log Message:
-----------
Tweak `[personal profile] mention` scanning regexps to fix end-of-sentence bug

Prior to this patch, `[personal profile] mentions` went Bad if they occurred before a
sentence-ending period -- mentions that used a shortcut site name (like `.ao3`)
just exploded, and other mentions would work but swallowed the sentence-ending
period.

This tweaks the regexps a bit:

- Cleanup: `\w` implies both `\d` and `_`, so they're not needed.
- Cleanup: `-` has special meaning depending on where it occurs within the
character class square brackets, so it's better to always escape it.
- Cleanup: hostnames can have hyphens.
- Bug fix: Final character of the matched [personal profile] mention must not be a period.


Commit: ddf76072221b068024f02e05af19e31980c9e95f
https://github.com/dreamwidth/dw-free/commit/ddf76072221b068024f02e05af19e31980c9e95f
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-05 (Fri, 05 Jun 2020)

Changed paths:
M t/cleaner-markdown.t

Log Message:
-----------
Add tests for usertags at ends of sentences


Commit: 2476f0207d1f069b4803ab9d4dfa8f13f33996f1
https://github.com/dreamwidth/dw-free/commit/2476f0207d1f069b4803ab9d4dfa8f13f33996f1
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-05 (Fri, 05 Jun 2020)

Changed paths:
M t/cleaner-markdown.t

Log Message:
-----------
Add a TODO for a case we can't really test yet


Compare: https://github.com/dreamwidth/dw-free/compare/06238c2a4b66...2476f0207d1f
Page generated Jul. 10th, 2025 11:54 am
Powered by Dreamwidth Studios