Skip to content

Commit c839343

Browse files
committed
fixup! Add support for fe_/be_ language prefixes in CodeSnippet
1 parent 28a803a commit c839343

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/CodeSnippet.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ const CodeSnippet: React.FC<CodeSnippetProps> = ({
281281
return fullLang;
282282
}
283283
// Fall back to first language with this prefix
284-
const prefixMatch = languages.find((l) => l.startsWith(`${resolvedSdk}_`));
284+
const prefixMatch = languages.find((l) =>
285+
l.startsWith(`${resolvedSdk}_`),
286+
);
285287
if (prefixMatch) return prefixMatch;
286288
}
287289

0 commit comments

Comments
 (0)