MCPcopy Create free account
hub / github.com/chhoumann/quickadd / isControlOrLineSeparator

Function isControlOrLineSeparator

src/utils/generatedFilePath.ts:11–15  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

9);
10
11function isControlOrLineSeparator(code: number): boolean {
12 return (
13 code <= 0x1f || code === 0x7f || code === 0x2028 || code === 0x2029
14 );
15}
16
17// Linear replacement for the historical global regex
18// ` *[<control>]+ *` -> " ": each run of control/line-separator characters,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected