Skip to content

Commit 087500a

Browse files
giodl73-repoPatrick-Erichsen
authored andcommitted
fix(claws): satisfy tool filter lint
1 parent dca3833 commit 087500a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/claws/schema.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const mcpToolFilterSchema = z
175175
for (const field of ["include", "exclude"] as const) {
176176
const seen = new Set<string>();
177177
for (const [index, value] of (filter[field] ?? []).entries()) {
178-
if (/[?\[\]]/.test(value)) {
178+
if (value.includes("?") || value.includes("[") || value.includes("]")) {
179179
ctx.addIssue({
180180
code: "custom",
181181
path: [field, index],

0 commit comments

Comments
 (0)