handle .masto.host specially

This commit is contained in:
dakkar 2024-11-27 14:44:33 +00:00
parent f0139ae1e0
commit 51afbbaf72
2 changed files with 17 additions and 1 deletions

View file

@ -35,5 +35,9 @@ describe('UtilityService', () => {
assert.equal(utilityService.punyHostPSLDomain('http://foo.github.io'), 'foo.github.io');
assert.equal(utilityService.punyHostPSLDomain('http://foo.bar.github.io'), 'bar.github.io');
});
test('special', () => {
assert.equal(utilityService.punyHostPSLDomain('http://foo.masto.host'), 'foo.masto.host');
assert.equal(utilityService.punyHostPSLDomain('http://foo.bar.masto.host'), 'bar.masto.host');
});
});
});