mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 17:41:36 +00:00
7 lines
173 B
TypeScript
7 lines
173 B
TypeScript
export function quoteCliArg(value: string): string {
|
|
if (/^[A-Za-z0-9_/:=.,@%+-]+$/.test(value)) {
|
|
return value;
|
|
}
|
|
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
}
|