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

Commit

Permalink
fix version bump gulp task related to double-digit patch versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Clarke authored and Travis Clarke committed Oct 1, 2016
1 parent 0ac107f commit 0b27ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ gulp.task('bump', ['bump-js', 'bump-css'], function(){

gulp.task('bump-js', function () {
return gulp.src(['src/stable/js/tableexport.js'])
.pipe(replace(/(v\d\.\d\.)(\d)/g, function (matches, match1, match2) {
.pipe(replace(/(v\d\.\d\.)(\d+)/g, function (matches, match1, match2) {
return match1 + (Number(match2)+1);
}))
.pipe(gulp.dest('src/stable/js/'))
Expand All @@ -47,7 +47,7 @@ gulp.task('bump-js', function () {

gulp.task('bump-css', function () {
gulp.src(['src/stable/css/tableexport.css'])
.pipe(replace(/(v\d\.\d\.)(\d)/g, function (matches, match1, match2) {
.pipe(replace(/(v\d\.\d\.)(\d+)/g, function (matches, match1, match2) {
return match1 + (Number(match2) + 1);
}))
.pipe(gulp.dest('src/stable/css/'))
Expand Down

0 comments on commit 0b27ef1

Please sign in to comment.