Skip to content

Commit

Permalink
more whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 11, 2015
1 parent 5805894 commit eb223af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Date.pm
Expand Up @@ -28,7 +28,7 @@ sub parse {
# RFC 850/1036 (Sunday, 06-Nov-94 08:49:37 GMT)
my $offset = 0;
my ($day, $month, $year, $h, $m, $s);
if ($date =~ /^\w+\W+(\d+)\W+(\w+)\D+(\d+)\D+(\d+):(\d+):(\d+)\W*\w+$/) {
if ($date =~ /^\w+\W+(\d+)\W+(\w+)\W+(\d+)\W+(\d+):(\d+):(\d+)\W*\w+$/) {
($day, $month, $year, $h, $m, $s) = ($1, $MONTHS{$2}, $3, $4, $5, $6);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -49,7 +49,7 @@ my %XML = (
);

# "Sun, 06 Nov 1994 08:49:37 GMT" and "Sunday, 06-Nov-94 08:49:37 GMT"
my $EXPIRES_RE = qr/(\w+\W+\d+\W+\w+\D+\d+\D+\d+:\d+:\d+\W*\w+)/;
my $EXPIRES_RE = qr/(\w+\W+\d+\W+\w+\W+\d+\W+\d+:\d+:\d+\W*\w+)/;

# Encoding cache
my %CACHE;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/date.t
Expand Up @@ -40,7 +40,7 @@ is(Mojo::Date->new(784111777.33)->to_datetime,
'1994-11-06T08:49:37.33Z', 'right format');

# Special cases
is(Mojo::Date->new('Sun, 06-Nov-1994 08:49:37 UTC')->epoch,
is(Mojo::Date->new('Sun , 06-Nov-1994 08:49:37 UTC')->epoch,
784111777, 'right epoch value');
is(Mojo::Date->new('Sunday,06 Nov 94 08:49:37 UTC')->epoch,
784111777, 'right epoch value');
Expand Down

0 comments on commit eb223af

Please sign in to comment.