MCPcopy Create free account
hub / github.com/ampproject/amphtml / linksToExample

Function linksToExample

build-system/server/app-index/file-list.js:9–11  ·  view source on GitHub ↗
(shouldContainBasepath, opt_name)

Source from the content-addressed store, hash-verified

7const htmlDocRegex = /\.html$/;
8
9const linksToExample = (shouldContainBasepath, opt_name) =>
10 examplesPathRegex.test(shouldContainBasepath) &&
11 htmlDocRegex.test(opt_name || shouldContainBasepath);
12
13/**
14 * @param {{ name: string, href: string, boundHref?: string|undefined }} config

Callers 2

FileListItemBoundFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected