Home / Function/ unescapeDoubleQuotes() — supabase Function Reference

unescapeDoubleQuotes() — supabase Function Reference

Architecture documentation for the unescapeDoubleQuotes() function in ProjectConfigVariables.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  fe42775f_6af4_6072_bcb8_7ca5df94d5da["unescapeDoubleQuotes()"]
  6a8ac7e0_013c_a41d_d671_f0c0576e1cd9["fromOrgProjectValue()"]
  6a8ac7e0_013c_a41d_d671_f0c0576e1cd9 -->|calls| fe42775f_6af4_6072_bcb8_7ca5df94d5da
  965ae01b_f498_32bb_fc8b_be1fabbe301c["fromBranchValue()"]
  965ae01b_f498_32bb_fc8b_be1fabbe301c -->|calls| fe42775f_6af4_6072_bcb8_7ca5df94d5da
  style fe42775f_6af4_6072_bcb8_7ca5df94d5da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.utils.ts lines 18–28

function unescapeDoubleQuotes(str: string) {
  /**
   * Regex matches a backslash followed by a double quote, except when the
   * backslash is escaped.
   *
   * Negative lookbehind:
   * \\(?:\\\\)* -> An odd number of backslashes (means the next backslash is escaped)
   * (?:^|[^\\]) -> Backslash group is at start or follows non-backslash
   */
  return str.replace(/(?<!(?:^|[^\\])\\(?:\\\\)*)\\"/g, '"')
}

Subdomains

Frequently Asked Questions

What does unescapeDoubleQuotes() do?
unescapeDoubleQuotes() is a function in the supabase codebase.
What calls unescapeDoubleQuotes()?
unescapeDoubleQuotes() is called by 2 function(s): fromBranchValue, fromOrgProjectValue.

Analyze Your Own Codebase

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

Try Supermodel Free