Skip to content

Commit 3ec6906

Browse files
committed
Fix generator bug
1 parent e9a1596 commit 3ec6906

2 files changed

Lines changed: 136 additions & 136 deletions

File tree

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace :holidays do
1414
data = YAML.load(URI.open('https://raw.githubusercontent.com/holiday-jp/holiday_jp/master/holidays.yml'))
1515
data = data.map do |v|
1616
v[1] = '振替休日' if v[1].match(/振替休日/)
17-
v[1] = '国民の休日' if v[1].match(/休日/)
17+
v[1] = '国民の休日' if v[1] == '休日'
1818
v
1919
end.to_h
2020
YAML.dump(data, File.open('holidays.yml', 'w'))

0 commit comments

Comments
 (0)