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
  aec33ae8_4a31_c2da_b1a7_10a8631fd10f["buildRegex()"]
  0a22351a_c237_f9ca_df3f_a6e82bad69d8["parseText()"]
  0a22351a_c237_f9ca_df3f_a6e82bad69d8 -->|calls| aec33ae8_4a31_c2da_b1a7_10a8631fd10f
  b65ee2ae_7b0a_e529_1797_def86b9220cf["cached()"]
  aec33ae8_4a31_c2da_b1a7_10a8631fd10f -->|calls| b65ee2ae_7b0a_e529_1797_def86b9220cf
  style aec33ae8_4a31_c2da_b1a7_10a8631fd10f 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')
})

Subdomains

Calls

Called By

Frequently Asked Questions

What does buildRegex() do?
buildRegex() is a function in the vue codebase.
What does buildRegex() call?
buildRegex() calls 1 function(s): cached.
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