Question
Double-bracket links convert spaces to next-letter-is-capital. For example:
are links to the same page. Where is this regular expression (if it controlled by one)? I want to add hyphens to the list of next-letter-is-capital characters. I want this so
case sensitive and
case-sensitive (etc.) will both mean the same to TWiki.
- TWiki version: Beta April 2002
- Web server: Apache 1.3.9 (-: heavily patched
- Server OS: Linux-Mandrake 7.0 (also heavily patched)
- Web browser: Mozilla 1.x, Galeon, Konqueror 3.0.1
- Client OS: Debian Unstable
--
AsheeshLaroia (lost password so didn't sign in) - 19 Jul 2002
Answer
Got it! I just added this code to
TWiki.pm and the
FindElsewherePlugin perl modules.
# <Added by="Asheesh" to="nullify hyphens">
$theTopic =~ s/-([a-zA-Z0-9])/\U$1/g;
# </Added>
I added it right after the following snippet in each:
# kill spaces and Wikify page name (ManpreetSingh - 15 Sep 2000)
$theTopic =~ s/^\s*//;
$theTopic =~ s/\s*$//;
$theTopic =~ s/^(.)/\U$1/;
$theTopic =~ s/\s([a-zA-Z0-9])/\U$1/g;
Feel free to contact me for more information!
--
AsheeshLaroia (still don't have password) - 20 Jul 2002
IRT password: See
TWiki.ResetPassword
--
PeterThoeny - 23 Jul 2002