Skip to content

Commit

Permalink
Modified startContent (used for create-changelog) to use predefined i…
Browse files Browse the repository at this point in the history
…nsertMarker and versionMarker rather than hard-coded
  • Loading branch information
LiuJoyceC committed Jul 8, 2016
1 parent 38bc99a commit d14d290
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/changelog/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ var changesDir = process.cwd() + '/.changes/';
var nextReleaseDir = changesDir + 'next-release/';
var insertMarker = '<!--ENTRYINSERT-->';
var versionMarker = ['<!--LATEST=', '-->'];
var startContent = '# Changelog for AWS SDK for JavaScript\
\n<!--LATEST=0.0.0-->\
\n<!--ENTRYINSERT-->';
var startContent = '# Changelog for AWS SDK for JavaScript\n' +
versionMarker.join('0.0.0') + '\n' + insertMarker;

var versionRegStr = '(\\d+)\\.(\\d+)\\.(\\d+)';
var versionReg = new RegExp('^' + versionRegStr + '$');
Expand Down

0 comments on commit d14d290

Please sign in to comment.