[Catalyst] Regex -- optional index.html

Brian Kirkbride brian.kirkbride at deeperbydesign.com
Fri Mar 2 00:30:40 GMT 2007


Bill Moseley wrote:
> 
> Yes, when tested in Perl it works that way, but in Catalyst in other
> cases it still matches.  That's the problem.
> 
> Seems that Catalyst first tries to match the full path, then tries to
> match a reduced path.  Adding a bit of debugging to Regex.pm's match()
> method:
> 
>     Request = /training/webcasts/webcast_data/162/foo.html
> 
>     Checking [training/webcasts/webcast_data/162/foo.html]
>     Checking [training/webcasts/webcast_data/162]
>     *MATCHED*
> 
> So that's why it's matchine when I don't want it to match.
> 
> 

This isn't a case that Args(0) would fix, is it?

Best,
Brian



More information about the Catalyst mailing list