]> Sergey Matveev's repositories - public-inbox.git/commit
linkify: avoid digits and dashes in placeholders
authorEric Wong <e@80x24.org>
Sun, 28 Aug 2022 03:59:50 +0000 (03:59 +0000)
committerEric Wong <e@80x24.org>
Sun, 28 Aug 2022 17:50:50 +0000 (17:50 +0000)
commit3f3c294e9466a4db7e0ed53e57b37226d0715f8a
treeaff02f6b32f90eafc35f4dd586393545909549d8
parent81ea7f0100f016ad8c66605b49230e876a1eb82d
linkify: avoid digits and dashes in placeholders

The `highlight' module seems to highlight every digit in
YAML (and possibly other) source files.  This causes problems
in linkify_2 which replaces the placeholders with proper URIs.
I suspect `-' and other punctuation characters will cause
similar problems, so we must stick to [A-Za-z].

Thus transliterate 0-9 to A-J in the hex key to ensure highlight
doesn't see digit characters, and rename the prefix to be
project-name independent.
lib/PublicInbox/Linkify.pm
t/linkify.t