Skip to content

Commit

Permalink
fix: switch replaceAll with replace in change-creator (#3753)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored May 7, 2021
1 parent d3ce713 commit 4d20e3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/next-release/bugfix-changelog-e6277489.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "bugfix",
"category": "changelog",
"description": "switch replaceAll with replace in change-creator"
}
2 changes: 1 addition & 1 deletion scripts/changelog/change-creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 4d20e3a

Please sign in to comment.