Skip to content

Commit 46cbfc8

Browse files
committed
Fix a regular expression detecting the version in the main class
1 parent 27fe8e6 commit 46cbfc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const bumpVersion = function () {
9393
return gulp.src([
9494
'core/components/toggletvset/src/ToggleTVSet.php'
9595
], {base: './'})
96-
.pipe(replace(/version = '\d+\.\d+\.\d+[-a-z0-9]*'/ig, 'version = \'' + pkg.version + '\''))
96+
.pipe(replace(/version = '\d+\.\d+\.\d+-?[0-9a-z]*'/ig, 'version = \'' + pkg.version + '\''))
9797
.pipe(gulp.dest('.'));
9898
};
9999
const bumpHomepanel = function () {

0 commit comments

Comments
 (0)