Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Change regex to be more general

Nick Rayburn3991383b1647
diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsx
index 913d741929d..2be99d3e0d7 100644
--- a/apps/docs/components/reference/RefFunctionSection.tsx
+++ b/apps/docs/components/reference/RefFunctionSection.tsx
@@ -119,7 +119,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
(example.code &&
example.code
.trim()
- .replace(/^```(js|ts|dart|c#|kotlin)/, '')
+ .replace(/^```.*/, '')
.replace(/```$/, ''))
const codeBlockLang = example?.code?.startsWith('```js')