Skip to content

Commit

Permalink
[Echo] Spot 1 hour email.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Dec 16, 2024
1 parent 30c6877 commit 71da1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/handlemail-echodowntime
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ my $m = $data{message} or exit 0;
my $out = "$root/data/echo-downtime.csv";

my $body = join " ", @{$m->body};
if ($body =~ /will be taken offline on\s+(.*?)\s+at\s+(.*?)\s+for\s+approximately\s+(\d+)\s+hours/s) {
if ($body =~ /will be taken offline on\s+(.*?)\s+at\s+(.*?)\s+for\s+approximately\s+(\d+)\s+hours?/s) {
my ($date, $time, $length) = ($1, $2, $3);

my $year = localtime->year;
Expand Down

0 comments on commit 71da1ed

Please sign in to comment.