Skip to content

Commit f6f96c3

Browse files
committed
feat: phpUpdater regex updated
1 parent 3a64e9a commit f6f96c3

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* universal-version-bump v0.8.10
2+
* universal-version-bump v0.8.11
33
* Universal Version Bump
44
*
55
* Description: A GitHub Action to automatically bump versions across any app (Node, Python, PHP, Docker, etc.)
66
* Author: Taj <[email protected]>
77
* Homepage: https://github.com/taj54/universal-version-bump#readme
88
* License: MIT
9-
* Generated on Mon, 25 Aug 2025 10:27:34 GMT
9+
* Generated on Mon, 25 Aug 2025 10:45:10 GMT
1010
*/
1111
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
1212
/******/ var __webpack_modules__ = ({
@@ -33268,12 +33268,12 @@ class PHPUpdater {
3326833268
break;
3326933269
case 'version.php':
3327033270
this.manifestParser.updateVersion(this.manifestPath, newVersion, 'regex', {
33271-
regexReplace: /(['"])[\d.]+(['"])/,
33271+
regexReplace: /(['"])([\d.]+)(['"])/,
3327233272
});
3327333273
break;
3327433274
case 'config.php':
3327533275
this.manifestParser.updateVersion(this.manifestPath, newVersion, 'regex', {
33276-
regexReplace: /'version'\s*=>\s*'[\d.]+'/, // Matches version in config array
33276+
regexReplace: /('version'\s*=>\s*')([\d.]+)(')/,
3327733277
});
3327833278
break;
3327933279
default:

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "universal-version-bump",
33
"displayName": "Universal Version Bump",
4-
"version": "0.8.10",
4+
"version": "0.8.11",
55
"description": "A GitHub Action to automatically bump versions across any app (Node, Python, PHP, Docker, etc.)",
66
"main": "dist/index.js",
77
"scripts": {

src/updaters/phpUpdater.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ export class PHPUpdater implements UpdaterInterface {
6767
break;
6868
case 'version.php':
6969
this.manifestParser.updateVersion(this.manifestPath, newVersion, 'regex', {
70-
regexReplace: /(['"])[\d.]+(['"])/,
70+
regexReplace: /(['"])([\d.]+)(['"])/,
7171
});
7272
break;
7373
case 'config.php':
7474
this.manifestParser.updateVersion(this.manifestPath, newVersion, 'regex', {
75-
regexReplace: /'version'\s*=>\s*'[\d.]+'/, // Matches version in config array
75+
regexReplace: /('version'\s*=>\s*')([\d.]+)(')/,
7676
});
7777
break;
7878
default:

0 commit comments

Comments
 (0)