mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(claws): satisfy tool filter lint
This commit is contained in:
committed by
Patrick Erichsen
parent
dca3833b14
commit
087500a809
+1
-1
@@ -175,7 +175,7 @@ const mcpToolFilterSchema = z
|
||||
for (const field of ["include", "exclude"] as const) {
|
||||
const seen = new Set<string>();
|
||||
for (const [index, value] of (filter[field] ?? []).entries()) {
|
||||
if (/[?\[\]]/.test(value)) {
|
||||
if (value.includes("?") || value.includes("[") || value.includes("]")) {
|
||||
ctx.addIssue({
|
||||
code: "custom",
|
||||
path: [field, index],
|
||||
|
||||
Reference in New Issue
Block a user