Skip to content

Commit 0b27ef1

Browse files
Travis ClarkeTravis Clarke
authored andcommitted
fix version bump gulp task related to double-digit patch versions
1 parent 0ac107f commit 0b27ef1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ gulp.task('bump', ['bump-js', 'bump-css'], function(){
3636

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

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

0 commit comments

Comments
 (0)