diff --git a/.changes/next-release/bugfix-changelog-e6277489.json b/.changes/next-release/bugfix-changelog-e6277489.json new file mode 100644 index 0000000000..a3f5264311 --- /dev/null +++ b/.changes/next-release/bugfix-changelog-e6277489.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "changelog", + "description": "switch replaceAll with replace in change-creator" +} \ No newline at end of file diff --git a/scripts/changelog/change-creator.js b/scripts/changelog/change-creator.js index 3b84e86b68..e604096c1d 100644 --- a/scripts/changelog/change-creator.js +++ b/scripts/changelog/change-creator.js @@ -24,7 +24,7 @@ function generateRandomIdentifier() { * Ref: https://github.com/aws/aws-sdk-js/issues/3691 */ function sanitizeFileName(filename) { - return filename.replaceAll(/[^a-zA-Z0-9\\.]/g, '-'); + return filename.replace(/[^a-zA-Z0-9\\.]/g, '-'); } var CHANGES_DIR = path.join(process.cwd(), '.changes');