get_entity_pattern() — svelte Function Reference
Architecture documentation for the get_entity_pattern() function in html.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 44da9850_1da6_da01_f162_bd91cf8c7ff8["get_entity_pattern()"] 06660fad_daa2_c824_01c8_ebafc63758a1["html.js"] 44da9850_1da6_da01_f162_bd91cf8c7ff8 -->|defined in| 06660fad_daa2_c824_01c8_ebafc63758a1 0e98e2b4_8bd8_533f_5e5b_6aa5b6a0c37b["reg_exp_entity()"] 44da9850_1da6_da01_f162_bd91cf8c7ff8 -->|calls| 0e98e2b4_8bd8_533f_5e5b_6aa5b6a0c37b style 44da9850_1da6_da01_f162_bd91cf8c7ff8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/utils/html.js lines 22–31
function get_entity_pattern(is_attribute_value) {
const reg_exp_num = '#(?:x[a-fA-F\\d]+|\\d+)(?:;)?';
const reg_exp_entities = Object.keys(entities).map(
/** @param {any} entity_name */ (entity_name) => reg_exp_entity(entity_name, is_attribute_value)
);
const entity_pattern = new RegExp(`&(${reg_exp_num}|${reg_exp_entities.join('|')})`, 'g');
return entity_pattern;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does get_entity_pattern() do?
get_entity_pattern() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/utils/html.js.
Where is get_entity_pattern() defined?
get_entity_pattern() is defined in packages/svelte/src/compiler/phases/1-parse/utils/html.js at line 22.
What does get_entity_pattern() call?
get_entity_pattern() calls 1 function(s): reg_exp_entity.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free