Skip to content

Commit

Permalink
fixed bump functions to support prerelease version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 25, 2023
1 parent 74dfa0d commit a5dfe24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const currentVersion = pkg.version;
const currentVersionData = parseVersionString(pkg.version);
const bumpFiles = {
// Version in the package file.
'./package.json': /("version": ")[0-9][0-9.]*(",$)/gm,
'./package.json': /("version": ")[0-9][0-9.a-zA-Z-]*(",$)/gm,
// Version in the readme file.
'./readme.txt': /(^\* Stable tag: )[0-9][0-9.]*($)/gm,
'./readme.txt': /(^\* Stable tag: )[0-9][0-9.a-zA-Z-]*($)/gm,
'./class-visual-portfolio.php': [
// Version in the file header.
/(\* Version:\s\s+)[0-9][0-9.]*($)/gm,
/(\* Version:\s\s+)[0-9][0-9.a-zA-Z-]*($)/gm,

// Version in the constant definition.
/(define\( 'VISUAL_PORTFOLIO_VERSION', ').*(' \);$)/gm,
Expand Down

0 comments on commit a5dfe24

Please sign in to comment.