From a5dfe240ec2dcea49be23dccc3e90c82278eb8ed Mon Sep 17 00:00:00 2001 From: Nikita Date: Sun, 26 Nov 2023 00:26:40 +0300 Subject: [PATCH] fixed bump functions to support prerelease version numbers --- gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 954c5d4a..ce944667 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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,