Просмотр исходного кода

chore: update CodeBlock.tsx

langauge -> language
Ikko Eltociear Ashimine 11 месяцев назад
Родитель
Сommit
bfe935e5f5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      webview-ui/src/components/common/CodeBlock.tsx

+ 1 - 1
webview-ui/src/components/common/CodeBlock.tsx

@@ -120,7 +120,7 @@ const CodeBlock = memo(({ source, forceWrap = false }: CodeBlockProps) => {
 						if (!node.lang) {
 							node.lang = "javascript"
 						} 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]
 						}
 					})