Skip to content

Commit

Permalink
update: 「驒」と「騨」の表記ゆれに対応
Browse files Browse the repository at this point in the history
「騨」は「驒」の簡略字体
  • Loading branch information
YuukiToriyama committed Nov 30, 2024
1 parent 163466c commit b24d124
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/dictionaries/jisDai2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,5 @@ export const jisDai2Dictionary: Dictionary[] = [
{ src: '籠', dst: '篭' },
{ src: '彌', dst: '弥' },
{ src: '麩', dst: '麸' },
{ src: '驒', dst: '騨' },
]
9 changes: 9 additions & 0 deletions test/main/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ describe(`basic tests`, () => {
assert.strictEqual(res.level, 3)
}
})

test('驒 -> 騨', async () => {
const addresses = ['岐阜県飛驒市', '岐阜県飛騨市']
for (const address of addresses) {
const res = await normalize(address)
assert.strictEqual(res.city, '飛騨市')
assert.strictEqual(res.level, 2)
}
})
})

test('柿碕町|柿さき町', async () => {
Expand Down

0 comments on commit b24d124

Please sign in to comment.