Home / Function/ normalizeExpression() — vue Function Reference

normalizeExpression() — vue Function Reference

Architecture documentation for the normalizeExpression() function in cssVars.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  cc967931_36b6_7a69_868a_4c0e81c7f5ff["normalizeExpression()"]
  bb311256_82b1_7231_99fb_ad12d5f1f4fd["parseCssVars()"]
  bb311256_82b1_7231_99fb_ad12d5f1f4fd -->|calls| cc967931_36b6_7a69_868a_4c0e81c7f5ff
  676a6c5d_6ef9_a6b7_ef84_83c833d8a8d4["cssVarsPlugin()"]
  676a6c5d_6ef9_a6b7_ef84_83c833d8a8d4 -->|calls| cc967931_36b6_7a69_868a_4c0e81c7f5ff
  style cc967931_36b6_7a69_868a_4c0e81c7f5ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/cssVars.ts lines 30–39

function normalizeExpression(exp: string) {
  exp = exp.trim()
  if (
    (exp[0] === `'` && exp[exp.length - 1] === `'`) ||
    (exp[0] === `"` && exp[exp.length - 1] === `"`)
  ) {
    return exp.slice(1, -1)
  }
  return exp
}

Domain

Subdomains

Frequently Asked Questions

What does normalizeExpression() do?
normalizeExpression() is a function in the vue codebase.
What calls normalizeExpression()?
normalizeExpression() is called by 2 function(s): cssVarsPlugin, parseCssVars.

Analyze Your Own Codebase

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

Try Supermodel Free