We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a464afd commit e0e8d76Copy full SHA for e0e8d76
src/core/security/SecurityGuard.ts
@@ -787,6 +787,7 @@ ask:
787
*/
788
private patternToRegex(pattern: string): RegExp {
789
const escaped = pattern
790
+ .replace(/\\/g, "\\\\") // Escape backslashes FIRST
791
.replace(/\./g, "\\.") // Escape dots
792
.replace(/\*/g, ".*") // Convert * to .*
793
@@ -868,6 +869,7 @@ ask:
868
869
if (normalizedPattern.includes("*")) {
870
// Convert glob pattern to regex
871
const regexPattern = normalizedPattern
872
873
874
875
0 commit comments