![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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 `
mention` scanning regexps to fix end-of-sentence bug
Prior to this patch, `
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
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
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
Prior to this patch, `
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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