(filePath: string, query: string)
| 479 | } |
| 480 | |
| 481 | private queryPathTokenOverlap(filePath: string, query: string): number { |
| 482 | const queryTerms = new Set(this.normalizeQueryTerms(query)); |
| 483 | if (queryTerms.size === 0) return 0; |
| 484 | |
| 485 | const pathTerms = this.normalizeQueryTerms(filePath.replace(/\\/g, '/')); |
| 486 | return pathTerms.reduce((count, term) => (queryTerms.has(term) ? count + 1 : count), 0); |
| 487 | } |
| 488 | |
| 489 | private isLikelyWiringOrFlowQuery(query: string): boolean { |
| 490 | return /\b(route|router|routing|navigate|navigation|redirect|auth|authentication|login|provider|register|config|configuration|interceptor|middleware)\b/i.test( |
no test coverage detected