Skip to content

Commit

Permalink
correct index using regex
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Dec 16, 2010
1 parent c4b2e51 commit cc9c46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PEG.pm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ my %content = (
},
);

get '/(index.html)?' => sub {
get qr{^ / (?: index \. html )? $}x => sub {
template 'index' => $content{'index'};
};

Expand Down

0 comments on commit cc9c46e

Please sign in to comment.