(value: string)
| 304 | } |
| 305 | |
| 306 | function 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 | |
| 314 | export interface FormatGitBadgeOptions { |
| 315 | readonly linkPullRequest?: boolean; |