getSavedFormsForUrl function infrastructure exported ✓ 100.0%

Last updated: 2026-03-01T23:25:47.133Z

Metrics

LOC: 4 Complexity: 1 Params: 1 Coverage: 100.0% (2/2 lines, 2x executed)

Signature

getSavedFormsForUrl(url: string): : Promise<SavedForm[]>

Summary

Retrieves saved forms whose urlPattern matches the given URL.

Tags

#@param url - The page URL to match against

Source Code

export async function getSavedFormsForUrl(url: string): Promise<SavedForm[]> {
  const forms = await getSavedForms();
  return forms.filter((form) => matchUrlPattern(url, form.urlPattern));
}

Dependencies (Outgoing)

graph LR getSavedFormsForUrl["getSavedFormsForUrl"] getSavedForms["getSavedForms"] getSavedFormsForUrl -->|calls| getSavedForms style getSavedFormsForUrl fill:#dbeafe,stroke:#2563eb,stroke-width:2px click getSavedFormsForUrl "7da324790dc20791.html" click getSavedForms "9a1357b95618ee5e.html"
TargetType
getSavedForms calls

No incoming dependencies.