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

Function g

out/cli.cjs:64794–64803  ·  view source on GitHub ↗
(D5)

Source from the content-addressed store, hash-verified

64792 if (typeof D5 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof D5}\``);
64793 return D5.replace(w2(), "");
64794}
64795i();
64796function y(D5) {
64797 return Number.isInteger(D5) ? D5 >= 4352 && (D5 <= 4447 || D5 === 9001 || D5 === 9002 || 11904 <= D5 && D5 <= 12871 && D5 !== 12351 || 12880 <= D5 && D5 <= 19903 || 19968 <= D5 && D5 <= 42182 || 43360 <= D5 && D5 <= 43388 || 44032 <= D5 && D5 <= 55203 || 63744 <= D5 && D5 <= 64255 || 65040 <= D5 && D5 <= 65049 || 65072 <= D5 && D5 <= 65131 || 65281 <= D5 && D5 <= 65376 || 65504 <= D5 && D5 <= 65510 || 110592 <= D5 && D5 <= 110593 || 127488 <= D5 && D5 <= 127569 || 131072 <= D5 && D5 <= 262141) : false;
64798}
64799var j = BD($2(), 1);
64800function g(D5) {
64801 if (typeof D5 != "string" || D5.length === 0 || (D5 = d2(D5), D5.length === 0)) return 0;
64802 D5 = D5.replace((0, j.default)(), " ");
64803 let F5 = 0;
64804 for (let u3 = 0; u3 < D5.length; u3++) {
64805 let C5 = D5.codePointAt(u3);
64806 C5 <= 31 || C5 >= 127 && C5 <= 159 || C5 >= 768 && C5 <= 879 || (C5 > 65535 && u3++, F5 += y(C5) ? 2 : 1);

Callers 5

hDFunction · 0.85
SFunction · 0.85
cDFunction · 0.85
dDFunction · 0.85
PFunction · 0.85

Calls 2

d2Function · 0.85
yFunction · 0.85

Tested by

no test coverage detected