Home / Function/ stripStrings() — vue Function Reference

stripStrings() — vue Function Reference

Architecture documentation for the stripStrings() function in compileScript.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  bca1d83e_8db5_fa8e_2047_b2a79f5c0251["stripStrings()"]
  c9346cac_54e3_f6ca_68a7_03c6e82c9609["compileScript.ts"]
  bca1d83e_8db5_fa8e_2047_b2a79f5c0251 -->|defined in| c9346cac_54e3_f6ca_68a7_03c6e82c9609
  8b0d9022_d61b_fac0_8496_8bd8ba5757a4["processExp()"]
  8b0d9022_d61b_fac0_8496_8bd8ba5757a4 -->|calls| bca1d83e_8db5_fa8e_2047_b2a79f5c0251
  style bca1d83e_8db5_fa8e_2047_b2a79f5c0251 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1865–1869

function stripStrings(exp: string) {
  return exp
    .replace(/'[^']*'|"[^"]*"/g, '')
    .replace(/`[^`]+`/g, stripTemplateString)
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does stripStrings() do?
stripStrings() is a function in the vue codebase, defined in packages/compiler-sfc/src/compileScript.ts.
Where is stripStrings() defined?
stripStrings() is defined in packages/compiler-sfc/src/compileScript.ts at line 1865.
What calls stripStrings()?
stripStrings() is called by 1 function(s): processExp.

Analyze Your Own Codebase

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

Try Supermodel Free