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
  cf49bf66_1716_47a9_b7ce_2ff9a30d62b1["stripStrings()"]
  b9f12a63_b611_1b00_0717_3ff21d7ce156["compileScript.ts"]
  cf49bf66_1716_47a9_b7ce_2ff9a30d62b1 -->|defined in| b9f12a63_b611_1b00_0717_3ff21d7ce156
  72c10b69_fb02_fbf6_63d5_43832727d4f7["processExp()"]
  72c10b69_fb02_fbf6_63d5_43832727d4f7 -->|calls| cf49bf66_1716_47a9_b7ce_2ff9a30d62b1
  style cf49bf66_1716_47a9_b7ce_2ff9a30d62b1 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