Home / Function/ normalizeRefPath() — supabase Function Reference

normalizeRefPath() — supabase Function Reference

Architecture documentation for the normalizeRefPath() function in validate-typespec-refs.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  1ac061ca_2f4a_7091_d971_31e50395ecbc["normalizeRefPath()"]
  4646b34b_7162_60f9_6469_0a3491aa30d9["invalidRefs()"]
  4646b34b_7162_60f9_6469_0a3491aa30d9 -->|calls| 1ac061ca_2f4a_7091_d971_31e50395ecbc
  style 1ac061ca_2f4a_7091_d971_31e50395ecbc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/scripts/validate-typespec-refs.ts lines 35–37

function normalizeRefPath(path: string) {
  return path.replace(/\.index(?=\.|$)/g, '').replace(/\.+/g, '.')
}

Subdomains

Called By

Frequently Asked Questions

What does normalizeRefPath() do?
normalizeRefPath() is a function in the supabase codebase.
What calls normalizeRefPath()?
normalizeRefPath() is called by 1 function(s): invalidRefs.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free