Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix attribute order
  • Loading branch information
kraih committed Nov 18, 2015
1 parent 5290bc8 commit e1c1ecc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Mojolicious/Routes/Pattern.pm
Expand Up @@ -4,11 +4,11 @@ use Mojo::Base -base;
use Mojo::Util 'deprecated';

has [qw(constraints defaults)] => sub { {} };
has [qw(regex unparsed)];
has placeholder_start => ':';
has [qw(placeholders tree)] => sub { [] };
has quote_end => ')';
has quote_start => '(';
has quote_end => ')';
has quote_start => '(';
has [qw(regex unparsed)];
has relaxed_start => '#';
has wildcard_start => '*';

Expand All @@ -30,7 +30,6 @@ sub match_partial {
# Compile on demand
$self->_compile($detect) unless $self->{regex};

# Path
return undef unless my @captures = $$pathref =~ $self->regex;
$$pathref = ${^POSTMATCH};
@captures = () if $#+ == 0;
Expand Down

0 comments on commit e1c1ecc

Please sign in to comment.