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

Cannot convert string of "一丁点儿\n" to Pinyin. #90

Closed
jaehyun-hwangf opened this issue Mar 30, 2023 · 3 comments · Fixed by #91
Closed

Cannot convert string of "一丁点儿\n" to Pinyin. #90

jaehyun-hwangf opened this issue Mar 30, 2023 · 3 comments · Fixed by #91
Labels
bug Something isn't working

Comments

@jaehyun-hwangf
Copy link

jaehyun-hwangf commented Mar 30, 2023

bug

Can not convert the string of "一丁点儿\n" to Pinyin.
I would appreciate it if you could tell me the cause or solve it. 🙂

script

const { pinyin } = require('pinyin-pro')

const res = pinyin("一丁点儿\n")

error result

TypeError: Cannot read properties of undefined (reading 'result')
    at {workspace}/node_modules/pinyin-pro/dist/index.js:1:286390
    at E ({workspace}/node_modules/pinyin-pro/dist/index.js:1:286561)
@zh-lx
Copy link
Owner

zh-lx commented Mar 30, 2023

Thank you for feedback on this issue. It is a bug and I will fix it as soon as possible.

@zh-lx zh-lx added the bug Something isn't working label Mar 30, 2023
@zh-lx zh-lx linked a pull request Mar 30, 2023 that will close this issue
@zh-lx zh-lx closed this as completed in #91 Mar 30, 2023
@zh-lx
Copy link
Owner

zh-lx commented Mar 30, 2023

The reason of this problem is that the pinyin of 一丁点儿 in dictionary was error. I have fixed it and welcome to use the latest version 3.13.2.

@jaehyun-hwangf
Copy link
Author

Thank you for solving it quickly 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants