better guarding against bash commands that go outside of cwd

This commit is contained in:
Dax Raad
2025-07-31 21:41:48 -04:00
parent 44211e1526
commit b6ee8e92f9
2 changed files with 8 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ export namespace Wildcard {
.replace(/\*/g, ".*") // * becomes .*
.replace(/\?/g, ".") + // ? becomes .
"$",
"s", // s flag enables multiline matching
)
return regex.test(str)
}