(filenames)
| 323 | } |
| 324 | |
| 325 | function collectSensitiveKeywords(filenames) { |
| 326 | const hits = new Set(); |
| 327 | for (const name of filenames) { |
| 328 | const match = normalizePath(name).match(SENSITIVE_PATTERN); |
| 329 | if (match && match[2]) { |
| 330 | hits.add(match[2]); |
| 331 | } |
| 332 | } |
| 333 | return [...hits].sort(); |
| 334 | } |
| 335 | |
| 336 | // ============================================================================ |
| 337 | // Classification Logic |
no test coverage detected