Skip to content

Commit 4d20e3a

Browse files
authored
fix: switch replaceAll with replace in change-creator (#3753)
1 parent d3ce713 commit 4d20e3a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "bugfix",
3+
"category": "changelog",
4+
"description": "switch replaceAll with replace in change-creator"
5+
}

scripts/changelog/change-creator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function generateRandomIdentifier() {
2424
* Ref: https://github.com/aws/aws-sdk-js/issues/3691
2525
*/
2626
function sanitizeFileName(filename) {
27-
return filename.replaceAll(/[^a-zA-Z0-9\\.]/g, '-');
27+
return filename.replace(/[^a-zA-Z0-9\\.]/g, '-');
2828
}
2929

3030
var CHANGES_DIR = path.join(process.cwd(), '.changes');

0 commit comments

Comments
 (0)