MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / mapDomain

Function mapDomain

out/cli.cjs:2897–2908  ·  view source on GitHub ↗
(domain, callback)

Source from the content-addressed store, hash-verified

2895 return result;
2896 }
2897 function mapDomain(domain, callback) {
2898 const parts = domain.split("@");
2899 let result = "";
2900 if (parts.length > 1) {
2901 result = parts[0] + "@";
2902 domain = parts[1];
2903 }
2904 domain = domain.replace(regexSeparators, ".");
2905 const labels = domain.split(".");
2906 const encoded = map(labels, callback).join(".");
2907 return result + encoded;
2908 }
2909 function ucs2decode(string) {
2910 const output = [];
2911 let counter = 0;

Callers 2

toUnicodeFunction · 0.85
toASCIIFunction · 0.85

Calls 1

mapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…