PerlDancer / Dancer2

Perl Dancer Next Generation (rewrite of Perl Dancer)
http://perldancer.org/
Other
542 stars 274 forks source link

Bugfix/route matches #1641

Closed veryrusty closed 2 years ago

veryrusty commented 2 years ago

Mixed regex and splats in paths such as get '/(any|some)/thing/*' => sub {...} result in more values from the match than there are regex comments and the generation of use of unitialized value warnings.

Add a simple test and check the token/spat comment is defined before testing equality to Shh those warnings.

cromedome commented 2 years ago

👍 Thanks @veryrusty!

cromedome commented 2 years ago

Merged, thank you!