From 89de98b25e1b783c15d31c0eec8aa11493d04416 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 22 Nov 2017 15:58:21 +0200 Subject: [PATCH] build(aio): ensure downloadable zip filenames are unique (#20586) Fixes #16227 PR Close #20586 --- aio/tools/example-zipper/exampleZipper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/example-zipper/exampleZipper.js b/aio/tools/example-zipper/exampleZipper.js index 6f3401466c..f6072e4113 100644 --- a/aio/tools/example-zipper/exampleZipper.js +++ b/aio/tools/example-zipper/exampleZipper.js @@ -62,7 +62,7 @@ class ExampleZipper { let exampleZipName; const exampleType = this._getExampleType(path.join(sourceDirName, relativeDirName)); if (relativeDirName.indexOf('/') !== -1) { // Special example - exampleZipName = relativeDirName.split('/')[0]; + exampleZipName = relativeDirName.split('/').join('-'); } else { exampleZipName = jsonFileName.replace(/(plnkr|zipper).json/, relativeDirName); }