(theme: string)
| 31 | } |
| 32 | |
| 33 | function extractChecksum(theme: string): string { |
| 34 | const checksumStart = theme.indexOf('@checksum -') |
| 35 | if (checksumStart === -1) { |
| 36 | throw new Error('Unable to find checksum in theme file.') |
| 37 | } |
| 38 | return theme.substring(checksumStart + 12, theme.indexOf('\n', checksumStart)) |
| 39 | } |
no outgoing calls
no test coverage detected