Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(tools): replace replaceAll with replace for ES2020 compatibility
Jiang Bohan7d04253791e2
diff --git a/src/agent/tools/policy.ts b/src/agent/tools/policy.tsindex 91a1ec08d4..765cdd075d 100644--- a/src/agent/tools/policy.ts+++ b/src/agent/tools/policy.ts@@ -60,7 +60,7 @@ function compilePattern(pattern: string): CompiledPattern {const escaped = normalized.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");return {kind: "regex",- value: new RegExp(`^${escaped.replaceAll("\\*", ".*")}$`),+ value: new RegExp(`^${escaped.replace(/\\\*/g, ".*")}$`),};}