Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 数字と漢数字が連続しているケースにおいて、数字と漢数字は別のブロックとして解析を行う #226

Merged

Conversation

kiyonori-matsumoto
Copy link
Contributor

#186
のいくつかの問題を解決するためのPRになります

数字と漢数字を連続した一つの数字ブロックとして扱ってしまうことで諸々の問題につながっているため、数字と漢数字を独立した数字ブロックとして扱うように修正を加えています

@kamataryo
Copy link
Contributor

@kiyonori-matsumoto ありがとうございます!なるほど、確かにこの方法だとうまくいきそうですね。
レビューさせていただきます。少々お待ちいただけますと幸いです 🙇

Copy link
Member

@keichan34 keichan34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございました!良さそうですが一点、細かいですが、テスト名について確認です。

expect(res).toStrictEqual({"pref": "東京都", "city": "千代田区", "town": "三番町", "addr": "2-4三町KSビル10階", "lat": 35.690557, "lng": 139.743591, "level": 3})
})

test('東京都千代田区神田美土代町9番地7千代田21ビル7階(「7千代田」が「7000代田」になる)', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

細かいのですが、こちらのテスト名内の「「7千代田」が「7000代田」になる」というのは「「7千代田」が「7000代田」にならない」というこどですよね。。?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

はい、あっています。
#186
のIssue中の文言をそのままテストケースに持ってきてしまっていました。
「ならない」に変更しますね 🙇

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keichan34 こちら以下のコミットで対応しました
b36b174

Copy link
Contributor

@kamataryo kamataryo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!

@kamataryo kamataryo merged commit 29600ac into geolonia:master Oct 23, 2023
9 checks passed
@kamataryo
Copy link
Contributor

@kiyonori-matsumoto こちらの機能を取り込んだバージョンをv2.10.0 としてリリースしました!
https://www.npmjs.com/package/@geolonia/normalize-japanese-addresses/v/2.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants