(value: string)
| 1132 | } |
| 1133 | |
| 1134 | function quoteSystemdArg(value: string): string { |
| 1135 | if (!/[\s"\\]/u.test(value)) { |
| 1136 | return value; |
| 1137 | } |
| 1138 | return `"${value.replace(/\\/gu, '\\\\').replace(/"/gu, '\\"')}"`; |
| 1139 | } |
| 1140 | |
| 1141 | function escapeXml(value: string): string { |
| 1142 | return value |
nothing calls this directly
no outgoing calls
no test coverage detected