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)
| Target | Type |
|---|---|
| getSavedForms | calls |
No incoming dependencies.