Home / Function/ getAndRemoveAttrByRegex() — vue Function Reference

getAndRemoveAttrByRegex() — vue Function Reference

Architecture documentation for the getAndRemoveAttrByRegex() function in helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  b977def9_3e5f_8912_3c0b_f65308d670f9["getAndRemoveAttrByRegex()"]
  a805e141_5683_4910_efc8_e49b792fbae3["processSlotContent()"]
  a805e141_5683_4910_efc8_e49b792fbae3 -->|calls| b977def9_3e5f_8912_3c0b_f65308d670f9
  style b977def9_3e5f_8912_3c0b_f65308d670f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/helpers.ts lines 222–231

export function getAndRemoveAttrByRegex(el: ASTElement, name: RegExp) {
  const list = el.attrsList
  for (let i = 0, l = list.length; i < l; i++) {
    const attr = list[i]
    if (name.test(attr.name)) {
      list.splice(i, 1)
      return attr
    }
  }
}

Subdomains

Frequently Asked Questions

What does getAndRemoveAttrByRegex() do?
getAndRemoveAttrByRegex() is a function in the vue codebase.
What calls getAndRemoveAttrByRegex()?
getAndRemoveAttrByRegex() is called by 1 function(s): processSlotContent.

Analyze Your Own Codebase

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

Try Supermodel Free