Skip to content

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

chore: remove unused code block function

Greg Richardson826158af9c05
diff --git a/packages/ui/src/components/CodeBlock/CodeBlock.utils.ts b/packages/ui/src/components/CodeBlock/CodeBlock.utils.ts
index c63a767346c..75e39954778 100644
--- a/packages/ui/src/components/CodeBlock/CodeBlock.utils.ts
+++ b/packages/ui/src/components/CodeBlock/CodeBlock.utils.ts
@@ -1,32 +1,3 @@
-// https://github.com/euank/node-parse-numeric-range/blob/master/index.js
-export function parseNumericRange(value: string) {
- let res = []
- let m
-
- for (let str of value.split(',').map((str) => str.trim())) {
- // just a number
- if (/^-?\d+$/.test(str)) {
- res.push(parseInt(str, 10))
- } else if ((m = str.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/))) {
- // 1-5 or 1..5 (equivalent) or 1...5 (doesn't include 5)
- let [_, lhs, sep, rhs] = m
-
- if (lhs && rhs) {
- lhs = parseInt(lhs)
- rhs = parseInt(rhs)
- const incr = lhs < rhs ? 1 : -1
-
- // Make it inclusive by moving the right 'stop-point' away by one.
- if (sep === '-' || sep === '..' || sep === '\u2025') rhs += incr
-
- for (let i = lhs; i !== rhs; i += incr) res.push(i)
- }
- }
- }
-
- return res
-}
-
export const monokaiCustomTheme = (isDarkMode: boolean) => {
return {
hljs: {