(query: string)
| 85 | * snake_case-with-a-dash hybrids from firing it. |
| 86 | */ |
| 87 | export function queryMightContainPaths(query: string): boolean { |
| 88 | return /[/\\]/.test(query) |
| 89 | || /\.[A-Za-z][A-Za-z0-9]{0,7}(?=[\s,;:)\]'"`]|$)/.test(query) |
| 90 | || /(?:^|[^-\w])[A-Za-z0-9]+(?:-[A-Za-z0-9]+)+(?=[^-\w]|$)/.test(query); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Longest span→suffix walk tried per span. 8 covers an absolute macOS path |
no outgoing calls
no test coverage detected