(className?: string)
| 45 | } |
| 46 | |
| 47 | export function extractLanguage(className?: string): string { |
| 48 | if (typeof className !== "string") return ""; |
| 49 | const match = className.match(/language-(\S+)/); |
| 50 | return match ? match[1] : ""; |
| 51 | } |
| 52 | |
| 53 | function stripDiffMarker(tokens: ThemedToken[], marker: RegExp): ThemedToken[] { |
| 54 | const last = tokens[tokens.length - 1]; |
no outgoing calls
no test coverage detected