diff --git a/src/agents/agent-scope-config.ts b/src/agents/agent-scope-config.ts index 6c1df3d33a2..59d5fb56184 100644 --- a/src/agents/agent-scope-config.ts +++ b/src/agents/agent-scope-config.ts @@ -42,8 +42,7 @@ function getLog(): ReturnType { /** Strip null bytes from paths to prevent ENOTDIR errors. */ function stripNullBytes(s: string): string { - // eslint-disable-next-line no-control-regex - return s.replace(/\0/g, ""); + return s.replaceAll("\0", ""); } export function listAgentEntries(cfg: OpenClawConfig): AgentEntry[] {