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

Function isWordCharStrict

packages/cli/src/ui/components/shared/text-buffer.ts:39–40  ·  view source on GitHub ↗
(char: string)

Source from the content-addressed store, hash-verified

37
38// Helper functions for line-based word navigation
39export const isWordCharStrict = (char: string): boolean =>
40 /[\w\p{L}\p{N}]/u.test(char); // Matches a single character that is any Unicode letter, any Unicode number, or an underscore
41
42export const isWhitespace = (char: string): boolean => /\s/.test(char);
43

Callers 8

isWordCharWithCombiningFunction · 0.85
isDifferentScriptFunction · 0.85
findNextWordStartInLineFunction · 0.85
findPrevWordStartInLineFunction · 0.85
findWordEndInLineFunction · 0.85
isAtEndOfBaseWordFunction · 0.85
handleVimActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected