MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / classifyPromptCodePoint

Function classifyPromptCodePoint

scripts/check-repo-hygiene.mjs:458–472  ·  view source on GitHub ↗
(codePoint)

Source from the content-addressed store, hash-verified

456}
457
458function classifyPromptCodePoint(codePoint) {
459 if (isBidirectionalTextControl(codePoint)) {
460 return "bidirectional text control";
461 }
462
463 if (isDisallowedControlCharacter(codePoint)) {
464 return "control character";
465 }
466
467 if (isInvisibleUnicode(codePoint)) {
468 return "invisible Unicode";
469 }
470
471 return null;
472}
473
474function isBidirectionalTextControl(codePoint) {
475 return (

Callers 1

checkPromptUnicodeFunction · 0.85

Calls 3

isInvisibleUnicodeFunction · 0.85

Tested by

no test coverage detected