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

Function isWhitespace

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

Source from the content-addressed store, hash-verified

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
44// Check if a character is a combining mark (only diacritics for now)
45export const isCombiningMark = (char: string): boolean => /\p{M}/u.test(char);

Callers 5

findNextWordStartInLineFunction · 0.70
findPrevWordStartInLineFunction · 0.70
findWordEndInLineFunction · 0.70
findNextWordAcrossLinesFunction · 0.70
findPrevWordAcrossLinesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected