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

V5 dev #2543

Merged
merged 2 commits into from Aug 19, 2022
Merged

V5 dev #2543

merged 2 commits into from Aug 19, 2022

Conversation

zhaoxinhu
Copy link
Contributor

说明

针对当前punycode处理完整域名异常问题。当前punycode处理字符正常,但是处理完整域名是不符合punycode要求的。
如:“赵新虎”转码后为“xn--efvz93e52e”,这个是正常的。但是完整域名“赵新虎.中国”转码后为“xn--.-lq6ay5z8yp4o2b37i”,真实完整域名转码为punycode为“xn--efvz93e52e.xn--fiqs8s”,域名中间的“.”是需要特殊处理的。

修改描述(包括说明bug修复或者添加新特性)

1、 针对完整域名处理punycode的不准确性进行了补充。

2、 另外有一个建议:punycode本身就是针对域名来处理的,所以确实需要特殊处理。即原始的encode和decode方法是否可以使用encodeDomain和decodeDomain进行替换?

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

Successfully merging this pull request may close these issues.

None yet

2 participants