Bug: TLA behaviour is odd
The behaviour of the regex for matching
TLAs is a bit suspect.
Test case
If I have a
TLA at the start of an otherwise innocent word - for example, TLAdahdah, then the
TLA gets linked. It shouldn't. This is easy to fix if you just put
\b
at the end of
$abbrevRegex
in TWiki.pm.
Environment
--
CrawfordCurrie - 30 Mar 2004
Follow up
The spec can be changed accordingly without introducing too much side-effects.
Notice that the spec for WikiWords is the same, a link stops at the first non-WikiWord character, as in
WebHome_withSomeMoreText.
--
PeterThoeny - 02 Apr 2004
Fix record
Converting to
PatchProposal so it gets done.
I changed it so plurals of
TLAs also work
$regex{abbrevRegex} = qr/[$regex{upperAlpha}]{3,}s?\b/;
commited to
SVN
--
SvenDowideit - 21 Jul 2004