MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isWordChar

Function isWordChar

packages/cli/src/ui/components/shared/text-buffer.ts:31–36  ·  view source on GitHub ↗
(ch: string | undefined)

Source from the content-addressed store, hash-verified

29
30// Simple helper for word‑wise ops.
31function isWordChar(ch: string | undefined): boolean {
32 if (ch === undefined) {
33 return false;
34 }
35 return !/[\s,.;!?]/.test(ch);
36}
37
38// Helper functions for line-based word navigation
39export const isWordCharStrict = (char: string): boolean =>

Callers 1

textBufferReducerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected