(catalog: CatalogEntry[])
| 47 | export const isSupportedUrl = (value: string) => normalizeUrl(value) !== ''; |
| 48 | |
| 49 | export const createSearchableCatalog = (catalog: CatalogEntry[]): SearchableCatalogEntry[] => |
| 50 | catalog.map((entry) => ({ |
| 51 | ...entry, |
| 52 | normalizedHref: normalizeUrl(entry.href), |
| 53 | normalizedTitle: normalizeText(entry.title), |
| 54 | })); |
| 55 | |
| 56 | export const findPotentialDuplicates = ( |
| 57 | proposal: Pick<ContributionForm, 'url' | 'title'>, |
nothing calls this directly
no test coverage detected