projects
/
catagits/Web-Simple.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
enable matching of empty string specs
[catagits/Web-Simple.git]
/
lib
/
Web
/
Dispatch
/
Parser.pm
diff --git
a/lib/Web/Dispatch/Parser.pm
b/lib/Web/Dispatch/Parser.pm
index
8e66a05
..
6ebc51e
100644
(file)
--- a/
lib/Web/Dispatch/Parser.pm
+++ b/
lib/Web/Dispatch/Parser.pm
@@
-35,6
+35,7
@@
sub parse {
sub _parse_spec {
my ($self, $spec, $nested) = @_;
+ return sub { {} } unless length($spec);
for ($_[1]) {
my @match;
PARSE: { do {