[Pmwiki-users] Re: Author tracking questions

Jonathan Scott Duff duff
Mon Feb 2 07:54:07 CST 2004


On Sun, Feb 01, 2004 at 01:29:10PM +0100, Christian Ridderstr??m wrote:
> On Sat, 31 Jan 2004, Patrick R. Michaud wrote:
> 
> > On Sun, Feb 01, 2004 at 12:45:53AM +0100, Christian Ridderstr?m wrote:
> > 
> > > It'd be nice if '-- Christian' at the end of a line would automatically 
> > > link to say Users.Christian.
> > 
> > I think this might be done (by default?) with a DoubleBrackets entry--
> > I'll see what I can do.  Is the regex "--\\s*[[:upper:]][\\w-]+$"
> > sufficient?  Could it match more than we intend?
> 
> What if my name as '?ke' (Swedish name) --- have you redefined [:upper:]?
> 
> Note sure I like '\\s*' since I dont think we want the following to match:
> 
>   asfasdfasfas    --               AnyText
> 
> I don't think there's anything wrong in requiring exactly one space 
> between '--' and the name. 

Why have a space at all?  Would --Name be so bad?

> And we probably want either a space before the 
> '--', or nothing, i.e.    "(?:^|\\s)--\\s($UserNamePattern)$"

Agreed.

-Scott
-- 
Jonathan Scott Duff
duff at pobox.com



More information about the pmwiki-users mailing list