mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: changed backend-pg to backend
This commit is contained in:
7
backend/src/lib/picomatch/index.ts
Normal file
7
backend/src/lib/picomatch/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import path from "node:path";
|
||||
|
||||
export function containsGlobPatterns(secretPath: string) {
|
||||
const globChars = ["*", "?", "[", "]", "{", "}", "**"];
|
||||
const normalizedPath = path.normalize(secretPath);
|
||||
return globChars.some((char) => normalizedPath.includes(char));
|
||||
}
|
||||
Reference in New Issue
Block a user