Fix regex to be case insensitive for yyyy

This commit is contained in:
iliajie
2023-02-05 01:53:24 +02:00
parent 0364c4810d
commit ef7102f0d3

View File

@@ -2051,7 +2051,7 @@ if ($fmt) {
if ($date =~ /(m|M)/);
$date[$-[1]] = '%d'
if ($date =~ /(d|D)/);
if ($date =~ /(yyyy)/) {
if ($date =~ /(yyyy)/i) {
$date[$-[1]] = '%Y'
}
elsif ($date =~ /(y|Y)/) {