## Lesson — When identifying directory-based glob patterns (like

**Tags:** architecture, curated
**Pattern:** \.(includes\(['"]/['"]\)(?!\s*,\s*1)|indexOf\(['"]/['"]\)\s*(?:>=?\s*0|!==\s*-1))
**Engine:** regex
**Scope:** **/*.ts, **/*.js
**Severity:** error

When identifying directory-based glob patterns (like.
