(code: string)
| 52 | ]; |
| 53 | |
| 54 | function includesAlphaTabWorker(code: string): boolean { |
| 55 | for (const pattern of alphaTabWorkerPatterns) { |
| 56 | let position = 0; |
| 57 | |
| 58 | for (const match of pattern) { |
| 59 | position = code.indexOf(match, position); |
| 60 | if (position === -1) { |
| 61 | break; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | if (position !== -1) { |
| 66 | return true; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | return false; |
| 71 | } |
| 72 | |
| 73 | function getWorkerType(code: string, match: RegExpExecArray): AlphaTabWorkerTypes { |
| 74 | if (match[1].includes('.addModule')) { |
no test coverage detected