Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

269 B
Raw Blame
import path from "node:path";

export function containsGlobPatterns(secretPath: string) {
  const globChars = ["*", "?", "[", "]", "{", "}", "**"];
  const normalizedPath = path.normalize(secretPath);
  return globChars.some((char) => normalizedPath.includes(char));
}