(value: string, label: string)
| 3 | const FORBIDDEN = /[\r\n]/; |
| 4 | |
| 5 | function assertNoLineBreaks(value: string, label: string): void { |
| 6 | if (FORBIDDEN.test(value)) { |
| 7 | throw new Error(`${label} cannot contain CR or LF characters.`); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | |
| 12 | function systemdEscapeArg(value: string): string { |
no outgoing calls
no test coverage detected