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

WIP fix: do not encode IDN domain #66

Closed
wants to merge 3 commits into from

Conversation

curbengh
Copy link
Contributor

More comprehensive approach to #61. This PR also encode root value.

@curbengh curbengh mentioned this pull request Aug 18, 2019
@coveralls
Copy link

coveralls commented Aug 18, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 7d1ab81 on curbengh:idn-punycode into 13068bc on hexojs:master.

@@ -67,4 +68,20 @@ describe('Sitemap generator', () => {
result.should.be.ok;
});
});

it('IDN handling', () => {
hexo.config.url = 'http://fôo.com/bár';
Copy link
Contributor Author

@curbengh curbengh Aug 18, 2019

Choose a reason for hiding this comment

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

While this option can be applied, but the following result still show "http://yoursite.com/".

This PR does work in a test blog, but somehow not in a unit test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's related to describe() it(). But I don't know how to proceed.

Copy link
Contributor Author

@curbengh curbengh Aug 24, 2019

Choose a reason for hiding this comment

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

could also related to how urlObject is referenced/dereferenced.

@curbengh
Copy link
Contributor Author

curbengh commented Sep 2, 2019

Pending hexojs/hexo-util#77

@curbengh curbengh changed the title fix: do not encode IDN domain WIP fix: do not encode IDN domain Sep 2, 2019
@tomap
Copy link
Contributor

tomap commented Sep 6, 2019

hexojs/hexo-util#77 merged

@curbengh
Copy link
Contributor Author

curbengh commented Sep 8, 2019

Superseded by #68

@curbengh curbengh closed this Sep 8, 2019
@curbengh curbengh deleted the idn-punycode branch September 8, 2019 06:19
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.

3 participants