[Bps-public-commit] r16366 - in Path-Dispatcher/trunk: lib/Path/Dispatcher/Rule
sartak at bestpractical.com
sartak at bestpractical.com
Sun Oct 19 06:38:11 EDT 2008
Author: sartak
Date: Sun Oct 19 06:38:04 2008
New Revision: 16366
Modified:
Path-Dispatcher/trunk/ (props changed)
Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm
Log:
r74135 at onn: sartak | 2008-10-19 06:33:44 -0400
Grep out 0-length tokens
Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm (original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm Sun Oct 19 06:38:04 2008
@@ -45,7 +45,7 @@
my $self = shift;
my $path = shift;
- my @tokens = split $self->delimiter, $path;
+ my @tokens = grep { length } split $self->delimiter, $path;
my @matched;
for my $expected ($self->tokens) {
More information about the Bps-public-commit
mailing list