Home / Function/ getClosestMatch() — astro Function Reference

getClosestMatch() — astro Function Reference

Architecture documentation for the getClosestMatch() function in levenshtein-string-matcher.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f9b53f04_a92f_c859_70b7_e60149d4ee33["getClosestMatch()"]
  d6c0cbba_560c_49e8_9eb1_ca2ef141e506["LevenshteinStringMatcher"]
  f9b53f04_a92f_c859_70b7_e60149d4ee33 -->|defined in| d6c0cbba_560c_49e8_9eb1_ca2ef141e506
  style f9b53f04_a92f_c859_70b7_e60149d4ee33 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/infra/levenshtein-string-matcher.ts lines 148–150

	getClosestMatch(target: string, candidates: Array<string>): string {
		return this.#closest(target, candidates);
	}

Domain

Subdomains

Frequently Asked Questions

What does getClosestMatch() do?
getClosestMatch() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/infra/levenshtein-string-matcher.ts.
Where is getClosestMatch() defined?
getClosestMatch() is defined in packages/astro/src/assets/fonts/infra/levenshtein-string-matcher.ts at line 148.

Analyze Your Own Codebase

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

Try Supermodel Free