MCPcopy Index your code
hub / github.com/TeaCoder52/patcode / isHumanFriendly

Function isHumanFriendly

src/index.ts:92–99  ·  view source on GitHub ↗
(
	code: string,
	options?: GenerateOptions
)

Source from the content-addressed store, hash-verified

90}
91
92export function isHumanFriendly(
93 code: string,
94 options?: GenerateOptions
95): boolean {
96 if (!/^\d+$/.test(code)) return false
97 if (code.length !== 4 && code.length !== 6) return false
98 return isCodeAllowed(code, options ?? {})
99}
100
101export function createCustomContext(
102 options: GenerateOptions = {}

Callers 1

core.test.tsFile · 0.90

Calls 1

isCodeAllowedFunction · 0.90

Tested by

no test coverage detected