fix(claws): satisfy tool filter lint

This commit is contained in:
Gio Della-Libera
2026-07-20 12:37:52 -07:00
committed by Patrick Erichsen
parent dca3833b14
commit 087500a809
+1 -1
View File
@@ -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],