Skip to content

Commit

Permalink
use /pattern/
Browse files Browse the repository at this point in the history
  • Loading branch information
kazeburo committed Sep 29, 2016
1 parent 6f79105 commit 127544a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cookie/Baker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub pp_crush_cookie {
my $cookie_string = shift;
return {} unless $cookie_string;
my %results;
my @pairs = grep m/=/, split "; ?", $cookie_string;
my @pairs = grep m/=/, split /; ?/, $cookie_string;
for my $pair ( @pairs ) {
# trim leading trailing whitespace
$pair =~ s/^\s+//; $pair =~ s/\s+$//;
Expand Down

0 comments on commit 127544a

Please sign in to comment.