MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isAlpha

Function isAlpha

src/cm/colorView.ts:53–60  ·  view source on GitHub ↗
(char: string)

Source from the content-addressed store, hash-verified

51}
52
53function isAlpha(char: string): boolean {
54 if (!char) return false;
55 const code = char.charCodeAt(0);
56 return (
57 (code >= 65 && code <= 90) || // A-Z
58 (code >= 97 && code <= 122)
59 );
60}
61
62function charAt(doc: Text, index: number): string {
63 if (index < 0 || index >= doc.length) return "";

Callers 1

readWordBeforeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected