docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Create a utility that turns domain or email strings containing Punycode labels into their Unicode form. The decoding must treat punycoded labels case-insensitively while leaving already-Unicode or plain ASCII labels untouched so repeated calls stay stable.
"XN--Mller-kva.de" becomes "müller.de", decoding the Punycode label even when the prefix casing is mixed. @test"shop.Example.COM" stays unchanged because it contains no Punycode labels. @test"admin@XN--caf-dma.com" becomes "admin@café.com", only decoding the domain portion. @testexport function decodeLabels(input: string): string;Provides conversion utilities for Punycode and Unicode domain labels.