From 4d20e3a714198bbab9d7d65cd30ebc89792910d6 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Fri, 7 May 2021 08:25:47 -0700 Subject: [PATCH] fix: switch replaceAll with replace in change-creator (#3753) --- .changes/next-release/bugfix-changelog-e6277489.json | 5 +++++ scripts/changelog/change-creator.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/next-release/bugfix-changelog-e6277489.json 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');