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

姓氏模式下自定义拼音无效 #37

Closed
ydfzgyj opened this issue Jan 8, 2022 · 1 comment · Fixed by #38
Closed

姓氏模式下自定义拼音无效 #37

ydfzgyj opened this issue Jan 8, 2022 · 1 comment · Fixed by #38
Labels
bug Something isn't working

Comments

@ydfzgyj
Copy link

ydfzgyj commented Jan 8, 2022

bug 描述

姓氏模式下如果自定义拼音包含了姓氏,则无法生效

你预期的样子是?

应先判断自定义拼音再判断姓氏

pinyin-pro 版本号

3.6.1

引入方式

esmodule

最小成本的复现步骤

customPinyin({
  乐嘉: 'lè jiā',
  乐毅: 'yuè yì'
})
pinyin('乐嘉') // 输出 "lè jiā"
pinyin('乐嘉', { mode: 'surname' }) // 输出 "yuè jiā"
@zh-lx zh-lx added the bug Something isn't working label Jan 8, 2022
@zh-lx
Copy link
Owner

zh-lx commented Jan 8, 2022

感谢反馈,已在最新版本修复

@zh-lx zh-lx closed this as completed Jan 8, 2022
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