Update src/permissions/permissionChecker.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
85a19c81f7
commit
b97f786baa
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ export function matchesArguments(
|
|||
// Handle glob patterns with wildcards (only for string patterns)
|
||||
if (typeof pattern === "string" && (pattern.includes("*") || pattern.includes("?"))) {
|
||||
// Convert argValue to string for pattern matching
|
||||
const stringValue = String(argValue || "");
|
||||
const stringValue = String(argValue ?? "");
|
||||
|
||||
// Escape all regex metacharacters except * and ?
|
||||
const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue