Home / Function/ buildRegex() — vue Function Reference

buildRegex() — vue Function Reference

Architecture documentation for the buildRegex() function in text-parser.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  cb4f4d3d_a4c8_4a2f_b7f1_94f8a175a0dd["buildRegex()"]
  b4f4f8a4_659f_4d84_97f1_ed004d07b69d["text-parser.ts"]
  cb4f4d3d_a4c8_4a2f_b7f1_94f8a175a0dd -->|defined in| b4f4f8a4_659f_4d84_97f1_ed004d07b69d
  dbffbbee_5e53_d952_4e1c_509b08e0b3e2["parseText()"]
  dbffbbee_5e53_d952_4e1c_509b08e0b3e2 -->|calls| cb4f4d3d_a4c8_4a2f_b7f1_94f8a175a0dd
  style cb4f4d3d_a4c8_4a2f_b7f1_94f8a175a0dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/parser/text-parser.ts lines 7–11

const buildRegex = cached(delimiters => {
  const open = delimiters[0].replace(regexEscapeRE, '\\$&')
  const close = delimiters[1].replace(regexEscapeRE, '\\$&')
  return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
})

Domain

Subdomains

Called By

Frequently Asked Questions

What does buildRegex() do?
buildRegex() is a function in the vue codebase, defined in src/compiler/parser/text-parser.ts.
Where is buildRegex() defined?
buildRegex() is defined in src/compiler/parser/text-parser.ts at line 7.
What calls buildRegex()?
buildRegex() is called by 1 function(s): parseText.

Analyze Your Own Codebase

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

Try Supermodel Free