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