Skip to content

Commit

Permalink
Fix array constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
0x62ash committed Aug 13, 2016
1 parent ccce024 commit 57f306f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Routes/Tiny/Pattern.pm
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ sub _prepare_pattern {
if (exists $self->{constraints}->{$name}) {
$constraint = $self->{constraints}->{$name};
if (ref $constraint eq 'ARRAY') {
$constraint = '?:' . join('|', @$constraint);
$constraint = join('|', @$constraint);
}
$re .= "($constraint)";
}
Expand Down

0 comments on commit 57f306f

Please sign in to comment.