MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / hasControlChars

Function hasControlChars

apps/kimi-code/src/utils/git/git-status.ts:306–312  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

304}
305
306function hasControlChars(value: string): boolean {
307 for (const char of value) {
308 const code = char.codePointAt(0) ?? 0;
309 if (code <= 0x1f || code === 0x7f) return true;
310 }
311 return false;
312}
313
314export interface FormatGitBadgeOptions {
315 readonly linkPullRequest?: boolean;

Callers 1

isSafeHttpUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected