Revert "handle xsns.jp as a special suffix"

This reverts commit 3c8829ba10.
This commit is contained in:
kakkokari-gtyih 2024-12-10 10:29:48 +09:00
parent b5b94d5b30
commit cf357b833c
2 changed files with 0 additions and 8 deletions

View file

@ -131,12 +131,6 @@ export class UtilityService {
return mastoHost[1];
}
// XServer SNS
const xserverSns = hostname.match(/\.?([a-zA-Z0-9-]+\.xsns\.jp)$/i);
if (xserverSns) {
return xserverSns[1];
}
return null;
}

View file

@ -38,8 +38,6 @@ describe('UtilityService', () => {
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');
assert.equal(utilityService.punyHostPSLDomain('http://foo.xsns.jp'), 'foo.xsns.jp');
assert.equal(utilityService.punyHostPSLDomain('http://foo.bar.xsns.jp'), 'bar.xsns.jp');
});
});
});