From 73ab4237009117c46a35fd0d07cd8f4bd5f29ff3 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Fri, 4 Oct 2024 12:32:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20add=20=E5=85=A7=20ky=C5=ABjitai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As reported here: https://github.com/birchill/10ten-ja-reader/issues/604#issuecomment-2391172525 --- src/kyuujitai.test.ts | 1 + src/kyuujitai.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/kyuujitai.test.ts b/src/kyuujitai.test.ts index 2c49346..3d0ac64 100644 --- a/src/kyuujitai.test.ts +++ b/src/kyuujitai.test.ts @@ -9,5 +9,6 @@ describe('kyuujitaiToShinjitai', () => { expect(kyuujitaiToShinjitai('隔靴搔痒')).toEqual('隔靴掻痒'); expect(kyuujitaiToShinjitai('學校')).toEqual('学校'); expect(kyuujitaiToShinjitai('戶')).toEqual('戸'); + expect(kyuujitaiToShinjitai('內')).toEqual('内'); }); }); diff --git a/src/kyuujitai.ts b/src/kyuujitai.ts index 966633c..0151c4b 100644 --- a/src/kyuujitai.ts +++ b/src/kyuujitai.ts @@ -34,6 +34,7 @@ const KYUU_TO_SHIN: { [c: number]: number } = { 20745: 20537, 20818: 20816, 20841: 20001, + 20839: 20869, 20904: 23500, 20937: 28092, 20955: 20956,