build(aio): ensure downloadable zip filenames are unique (#20586)
Fixes #16227 PR Close #20586
This commit is contained in:
parent
de78307928
commit
89de98b25e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue