diff --git a/gulpfile.js b/gulpfile.js index 8982376..ef671be 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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/')) @@ -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/'))