From 5cafd44654be5fac1645907838f53db85da5dbfe Mon Sep 17 00:00:00 2001 From: Kapunahele Wong Date: Tue, 12 Feb 2019 15:03:24 -0500 Subject: [PATCH] fix(docs-infra): fix filtering in run-example-e2e.js (#28663) PR Close #28663 --- aio/tools/examples/run-example-e2e.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/examples/run-example-e2e.js b/aio/tools/examples/run-example-e2e.js index 63d92f1d31..ba6368401b 100644 --- a/aio/tools/examples/run-example-e2e.js +++ b/aio/tools/examples/run-example-e2e.js @@ -325,7 +325,7 @@ function getE2eSpecs(basePath, filter) { // Find all e2e specs in a given example folder. function getE2eSpecsFor(basePath, specFile, filter) { // Only get spec file at the example root. - const e2eSpecGlob = `${filter ? '*' + filter + '*' : '*'}/${specFile}`; + const e2eSpecGlob = `${filter ? `*${filter}*` : '*'}/${specFile}`; return globby(e2eSpecGlob, {cwd: basePath, nodir: true}) .then( paths => paths.filter(file => !IGNORED_EXAMPLES.some(ignored => file.startsWith(ignored)))