Skip Menu |

This queue is for tickets about the Text-WikiFormat-SAX CPAN distribution.

Report information
The Basics
Id: 2794
Status: resolved
Priority: 0/
Queue: Text-WikiFormat-SAX

People
Owner: Nobody in particular
Requestors: sbwoodside [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.03
Fixed in: (no value)



Subject: A patch to fix WikiWord support
There's a pretty thorough explanation of what a WikiWord should be here http://twiki.org/cgi-bin/view/TWiki/WikiWord this patch will match that. --- SAX.pm.orig 2003-06-11 18:52:18.000000000 -0700 +++ SAX.pm 2003-06-12 14:21:39.000000000 -0700 @@ -229,8 +229,8 @@ $self->_format_line($1, $strong, $emphasized, $line, $link, $data); $link->($2); } - #CamelCase link - elsif ($text =~ s|^(.*?)(?<!["/>=])\b([A-Za-z]+(?:[A-Z]\w+)+)||) { + #CamelCase link (aka WikiWord) + elsif ($text =~ s|^(.*?)(?<!["/>=])\b([A-Z]+\w*[a-z]+\w*[A-Z]+\w*[a-z]+\w*)||) { $data->($1); $link->($2); }
Applied, thanks.