(value)
| 262 | } |
| 263 | |
| 264 | function normalizeRef(value) { |
| 265 | if ( |
| 266 | !value || |
| 267 | value.startsWith("/") || |
| 268 | value.startsWith("#") || |
| 269 | /^[a-z]+:\/\//i.test(value) || |
| 270 | value.endsWith("/") || |
| 271 | value.includes("/") |
| 272 | ) { |
| 273 | return null; |
| 274 | } |
| 275 | |
| 276 | return value.endsWith(".md") ? value.slice(0, -".md".length) : value; |
| 277 | } |
| 278 | |
| 279 | function removeStaleStringEntries(block, staleSlugs) { |
| 280 | const stale = new Set(staleSlugs); |
no outgoing calls
no test coverage detected