(query: string)
| 118 | * single-colon identifier pair. |
| 119 | */ |
| 120 | export function normalizeQuerySpelling(query: string): string { |
| 121 | return query |
| 122 | .replace(/\b([A-Za-z_][\w@]*)\/(\d{1,3})(?=$|[\s,()[\]/])/g, '$1') |
| 123 | .replace( |
| 124 | /(^|[\s,()[\]])(?!(?:kind|lang|language|path|name):)([a-z_][\w@]*):([A-Za-z_][\w@]*)(?=$|[\s,()[\]])/g, |
| 125 | '$1$2.$3' |
| 126 | ); |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Calculate the recommended number of codegraph_explore calls based on project size. |
no outgoing calls
no test coverage detected