MCPcopy
hub / github.com/di-sukharev/opencommit / toUnicode

Function toUnicode

out/cli.cjs:3064–3068  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

3062 return output.join("");
3063 };
3064 var toUnicode = function(input) {
3065 return mapDomain(input, function(string) {
3066 return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
3067 });
3068 };
3069 var toASCII = function(input) {
3070 return mapDomain(input, function(string) {
3071 return regexNonASCII.test(string) ? "xn--" + encode3(string) : string;

Callers

nothing calls this directly

Calls 6

mapDomainFunction · 0.85
decodeFunction · 0.85
processingFunction · 0.85
testMethod · 0.80
toLowerCaseMethod · 0.80
sliceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…