Skip to content

Commit 52ec7ee

Browse files
committed
replaceAll must be called with global flag
1 parent b9b422b commit 52ec7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/common/shared/file-helper.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class FileHelperService {
3737

3838
public downloadPemCertificate(certificateBundle: CertificateBundle, entityName: string) {
3939
try {
40-
const nameNoSpacesOrColons = entityName.replaceAll(/(\s|:)/, '_');
40+
const nameNoSpacesOrColons = entityName.replaceAll(/(\s|:)/g, '_');
4141

4242
const zip = new JSZip();
4343
zip.file("Certificate_" + nameNoSpacesOrColons + ".pem", certificateBundle.certificate!);

0 commit comments

Comments
 (0)