(text: string)
| 118 | let avgCacheDbPromise: |
| 119 | | Promise<Awaited<ReturnType<typeof JSONFilePreset<AvgCacheDB>>>> |
| 120 | | undefined; |
| 121 | |
| 122 | function getTextAfterTokens(text: string, count: number): string { |
| 123 | if (count <= 0) return text.trim(); |
| 124 | return text |
| 125 | .replace( |
| 126 | new RegExp( |
| 127 | `^\\S+${Array(count - 1) |
| 128 | .fill("\\s+\\S+") |
| 129 | .join("")}`, |
| 130 | ), |
| 131 | "", |
| 132 | ) |
| 133 | .trim(); |
| 134 | } |
| 135 |
no outgoing calls
no test coverage detected