FakeStringMatcher Class — astro Architecture
Architecture documentation for the FakeStringMatcher class in utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 950f4253_760a_41d0_cd83_74d48e1644f8["FakeStringMatcher"] cf581885_d0e2_b165_a30e_db299dd301a8["utils.js"] 950f4253_760a_41d0_cd83_74d48e1644f8 -->|defined in| cf581885_d0e2_b165_a30e_db299dd301a8 e10b0a38_5353_9a76_9007_474a42b10e75["constructor()"] 950f4253_760a_41d0_cd83_74d48e1644f8 -->|method| e10b0a38_5353_9a76_9007_474a42b10e75 7a282485_a50c_99a8_5878_d410c3e88ec7["getClosestMatch()"] 950f4253_760a_41d0_cd83_74d48e1644f8 -->|method| 7a282485_a50c_99a8_5878_d410c3e88ec7
Relationship Graph
Source Code
packages/astro/test/units/assets/fonts/utils.js lines 154–166
export class FakeStringMatcher {
/** @type {string} */
#match;
/** @param {string} match */
constructor(match) {
this.#match = match;
}
getClosestMatch() {
return this.#match;
}
}
Domain
Source
Frequently Asked Questions
What is the FakeStringMatcher class?
FakeStringMatcher is a class in the astro codebase, defined in packages/astro/test/units/assets/fonts/utils.js.
Where is FakeStringMatcher defined?
FakeStringMatcher is defined in packages/astro/test/units/assets/fonts/utils.js at line 154.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free