mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
chore: update CodeBlock.tsx
langauge -> language
This commit is contained in:
committed by
GitHub
parent
73532e4b12
commit
bfe935e5f5
@@ -120,7 +120,7 @@ const CodeBlock = memo(({ source, forceWrap = false }: CodeBlockProps) => {
|
|||||||
if (!node.lang) {
|
if (!node.lang) {
|
||||||
node.lang = "javascript"
|
node.lang = "javascript"
|
||||||
} else if (node.lang.includes(".")) {
|
} else if (node.lang.includes(".")) {
|
||||||
// if the langauge is a file, get the extension
|
// if the language is a file, get the extension
|
||||||
node.lang = node.lang.split(".").slice(-1)[0]
|
node.lang = node.lang.split(".").slice(-1)[0]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user