Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
refine bump regex for README
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 26, 2017
1 parent 801d500 commit a4912be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ gulp.task('bump-typings', function () {

gulp.task('bump-readme', function () {
gulp.src(['gitbook/READMEv3.md'])
.pipe(replace(/(v[124567890]\d*\.\d+\.)(\d+)/g, function (matches, match1, match2) {
.pipe(replace(/(\/v?[3]\.\d+\.)(\d+)/g, function (matches, match1, match2) {
return match1 + (Number(match2) + 1);
}))
.pipe(gulp.dest('gitbook/'))
Expand Down

0 comments on commit a4912be

Please sign in to comment.