github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2017-03-02 09:35 pm

[dreamwidth/dw-free] b46d58: [#1990] don't transform username tags in URLs

Branch: refs/heads/develop
Home: https://github.com/dreamwidth/dw-free
Commit: b46d5882591896da59ef1a7b430e861557fe9cb1
https://github.com/dreamwidth/dw-free/commit/b46d5882591896da59ef1a7b430e861557fe9cb1
Author: Kareila <kareila@dreamwidth.org>
Date: 2017-02-22 (Wed, 22 Feb 2017)

Changed paths:
M cgi-bin/LJ/CleanHTML.pm
A t/cleaner-markdown.t

Log Message:
-----------
[#1990] don't transform username tags in URLs

I thought about bringing out the heavy artillery (aka HTML::Parser)
but realized that even if we just transformed on plain text,
things that look like usernames in plain URLs would still be
mangled. So this just tweaks the existing regular expression to
ignore "@username" if immediately preceded by a slash.

Fixes #1990.


Commit: 7f8f41f19d4265d8342ef8f3f775886fd06977ef
https://github.com/dreamwidth/dw-free/commit/7f8f41f19d4265d8342ef8f3f775886fd06977ef
Author: Mark Smith <mark@qq.is>
Date: 2017-03-02 (Thu, 02 Mar 2017)

Changed paths:
M cgi-bin/LJ/CleanHTML.pm
A t/cleaner-markdown.t

Log Message:
-----------
Merge pull request #2004 from kareila/1990-markdown-usernames

[#1990] don't transform username tags in URLs


Compare: https://github.com/dreamwidth/dw-free/compare/4924682f9d69...7f8f41f19d42