mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
Revert "handle xsns.jp as a special suffix"
This reverts commit 3c8829ba10
.
This commit is contained in:
parent
b5b94d5b30
commit
cf357b833c
2 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue