(str: string)
| 64 | !isEnvTemplateFile(basename) |
| 65 | |
| 66 | const matchesPattern = (str: string) => |
| 67 | SENSITIVE_PATTERNS.prefix.some( |
| 68 | (p) => str.startsWith(p) && !str.endsWith('.pub'), |
| 69 | ) || |
| 70 | SENSITIVE_PATTERNS.suffix.some((s) => str.endsWith(s)) || |
| 71 | SENSITIVE_PATTERNS.substring.some((sub) => str.includes(sub)) |
| 72 | |
| 73 | const ENV_TEMPLATE_SUFFIXES = ['.env.example', '.env.sample', '.env.template'] |
| 74 |