We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replaceAll
1 parent b9b422b commit 52ec7eeCopy full SHA for 52ec7ee
src/app/common/shared/file-helper.service.ts
@@ -37,7 +37,7 @@ export class FileHelperService {
37
38
public downloadPemCertificate(certificateBundle: CertificateBundle, entityName: string) {
39
try {
40
- const nameNoSpacesOrColons = entityName.replaceAll(/(\s|:)/, '_');
+ const nameNoSpacesOrColons = entityName.replaceAll(/(\s|:)/g, '_');
41
42
const zip = new JSZip();
43
zip.file("Certificate_" + nameNoSpacesOrColons + ".pem", certificateBundle.certificate!);
0 commit comments