Home / Function/ areRegexesEqual() — astro Function Reference

areRegexesEqual() — astro Function Reference

Architecture documentation for the areRegexesEqual() function in routing.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  bc2ad8e6_6e05_ef66_358c_a7d91bb23452["areRegexesEqual()"]
  023064dd_a580_49f4_740a_68db4b2f69c1["routing.ts"]
  bc2ad8e6_6e05_ef66_358c_a7d91bb23452 -->|defined in| 023064dd_a580_49f4_740a_68db4b2f69c1
  8386aac3_19ce_39c5_75d9_8b1431b13519["prioritizePrerenderedMatchesComparator()"]
  8386aac3_19ce_39c5_75d9_8b1431b13519 -->|calls| bc2ad8e6_6e05_ef66_358c_a7d91bb23452
  style bc2ad8e6_6e05_ef66_358c_a7d91bb23452 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/prerender/routing.ts lines 66–68

function areRegexesEqual(regexp1: RegExp, regexp2: RegExp) {
	return regexp1.source === regexp2.source && regexp1.global === regexp2.global;
}

Domain

Subdomains

Frequently Asked Questions

What does areRegexesEqual() do?
areRegexesEqual() is a function in the astro codebase, defined in packages/astro/src/prerender/routing.ts.
Where is areRegexesEqual() defined?
areRegexesEqual() is defined in packages/astro/src/prerender/routing.ts at line 66.
What calls areRegexesEqual()?
areRegexesEqual() is called by 1 function(s): prioritizePrerenderedMatchesComparator.

Analyze Your Own Codebase

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

Try Supermodel Free