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
  e8aa202e_10c7_9aed_f281_2d65e3e65cef["getAndRemoveAttrByRegex()"]
  5b174fba_1f83_94cc_774e_5234231c01dc["processSlotContent()"]
  5b174fba_1f83_94cc_774e_5234231c01dc -->|calls| e8aa202e_10c7_9aed_f281_2d65e3e65cef
  style e8aa202e_10c7_9aed_f281_2d65e3e65cef 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
    }
  }
}

Domain

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