( baseHref: string, urls = DEFAULT_NAVIGATION_URLS, )
| 117 | } |
| 118 | |
| 119 | export function processNavigationUrls( |
| 120 | baseHref: string, |
| 121 | urls = DEFAULT_NAVIGATION_URLS, |
| 122 | ): {positive: boolean; regex: string}[] { |
| 123 | return urls.map((url) => { |
| 124 | const positive = !url.startsWith('!'); |
| 125 | url = positive ? url : url.slice(1); |
| 126 | return {positive, regex: `^${urlToRegex(url, baseHref)}$`}; |
| 127 | }); |
| 128 | } |
| 129 | |
| 130 | async function processInBatches<I, O>( |
| 131 | items: I[], |
no test coverage detected
searching dependent graphs…