mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01: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());
|
||
|
};
|