mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-29 10:56:22 -07:00
6 lines
140 B
TypeScript
6 lines
140 B
TypeScript
|
import { toUnicode } from 'punycode';
|
||
|
|
||
|
export default host => {
|
||
|
return toUnicode(host).replace(/[A-Z]+/, match => match.toLowerCase());
|
||
|
};
|