export function globMatch(pattern: string, value: string): boolean { const p = pattern.toLowerCase(); const v = value.toLowerCase(); if (p === "*") return true; if (p.startsWith("*") && p.endsWith("*")) return v.includes(p.slice(1, -1)); if (p.endsWith("*")) return v.startsWith(p.slice(0, -1)); if (p.startsWith("*")) return v.endsWith(p.slice(1)); return v === p; }