( code: string, options?: GenerateOptions )
| 90 | } |
| 91 | |
| 92 | export 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 | |
| 101 | export function createCustomContext( |
| 102 | options: GenerateOptions = {} |
no test coverage detected