Skip to content

Commit

Permalink
令和に対応(遅い)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piroli YUKARINOMIYA committed Feb 26, 2022
1 parent d640edc commit bba90cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions JapaneseYear.pl
Expand Up @@ -6,7 +6,7 @@ package MT::Plugin::OMV::JapaneseYear;

use vars qw( $MYNAME $VERSION );
$MYNAME = (split /::/, __PACKAGE__)[-1];
$VERSION = '0.00_01';
$VERSION = '0.00_02';

use base qw( MT::Plugin );
my $plugin = __PACKAGE__->new({
Expand All @@ -32,7 +32,8 @@ package MT::Plugin::OMV::JapaneseYear;
'明治' => [ 1868_09_08, 1912_07_29 ],
'大正' => [ 1912_07_30, 1926_12_24 ],
'昭和' => [ 1926_12_25, 1989_01_07 ],
'平成' => [ 1989_01_08, 2999_12_31 ],
'平成' => [ 1989_01_08, 2019_04_30 ],
'令和' => [ 2019_05_01, 2999_12_31 ],
);
$date =~ s!(\d{8})!sub {
Expand Down

0 comments on commit bba90cb

Please sign in to comment.