(lang)
| 23 | } |
| 24 | |
| 25 | export const normalizeCodeLanguage = (lang) => { |
| 26 | const language = String(lang || '') |
| 27 | .trim() |
| 28 | .split(/[\s:,]/)[0] |
| 29 | .toLowerCase() |
| 30 | |
| 31 | return CODE_LANGUAGE_ALIASES[language] || language |
| 32 | } |
| 33 | |
| 34 | const CODE_LANGUAGE_MAP = { |
| 35 | '.py': 'python', |
no outgoing calls
no test coverage detected