Skip to content

Commit

Permalink
update: 鹿嶋市の表記ゆれ: 「茨城県鹿島市」を「茨城県鹿嶋市」と認識できるよう修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed Feb 10, 2024
1 parent 173c9fd commit fc4ad95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/adapter/orthographical_variant_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub trait OrthographicalVariants {
const: Variant;
const: Variant;
const: Variant;
const: Variant;
}

impl OrthographicalVariants for Variant {
Expand All @@ -23,6 +24,7 @@ impl OrthographicalVariants for Variant {
const: Variant = &["崎", "﨑"];
const: Variant = &["桧", "檜"];
const: Variant = &["龍", "竜"];
const: Variant = &["嶋", "島"];
}

pub struct OrthographicalVariantAdapter {
Expand Down
1 change: 1 addition & 0 deletions src/parser/read_city.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub fn read_city(input: &str, prefecture: Prefecture) -> Option<(String, String)
match prefecture.name.as_str() {
"茨城県" => {
variant_list.push(Variant::);
variant_list.push(Variant::);
}
"東京都" => {
variant_list.push(Variant::);
Expand Down

0 comments on commit fc4ad95

Please sign in to comment.