extractExpectedVariables() — supabase Function Reference
Architecture documentation for the extractExpectedVariables() function in Partial.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 224f83a6_9322_e59b_55e6_44359e0b9138["extractExpectedVariables()"] c4e99cf4_74d4_e55a_d410_f70700102bee["validateVariables()"] c4e99cf4_74d4_e55a_d410_f70700102bee -->|calls| 224f83a6_9322_e59b_55e6_44359e0b9138 style 224f83a6_9322_e59b_55e6_44359e0b9138 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/directives/Partial.ts lines 81–91
function extractExpectedVariables(content: string): Set<string> {
const variablePattern = /(?<!\\)\{\{\s*\.([\w-]+)\s*\}\}/g
const variables = new Set<string>()
let match
while ((match = variablePattern.exec(content)) !== null) {
variables.add(match[1])
}
return variables
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does extractExpectedVariables() do?
extractExpectedVariables() is a function in the supabase codebase.
What calls extractExpectedVariables()?
extractExpectedVariables() is called by 1 function(s): validateVariables.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free