(scriptPath: string)
| 21 | } |
| 22 | |
| 23 | export function parseScriptParts(scriptPath: string): string[] { |
| 24 | const scriptPartsRegex = /[^\s"']+|"([^"]*)"|'([^']*)'/g; |
| 25 | let match; |
| 26 | const scriptParts = []; |
| 27 | |
| 28 | while ((match = scriptPartsRegex.exec(scriptPath)) !== null) { |
| 29 | if (match[1]) { |
| 30 | scriptParts.push(match[1]); |
| 31 | } else if (match[2]) { |
| 32 | scriptParts.push(match[2]); |
| 33 | } else { |
| 34 | scriptParts.push(match[0]); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | return scriptParts; |
| 39 | } |
| 40 | |
| 41 | export function getFileHashes(scriptParts: string[]): string[] { |
| 42 | const fileHashes: string[] = []; |
no test coverage detected
searching dependent graphs…