Skip to content

Commit 3daf288

Browse files
committed
Fix the version bump script
1 parent d44267a commit 3daf288

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/versionbump.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$re = '/\d+\.\d+.\d+(?:-\w+(?:\.\w+)?)?/m';
3+
$re = '/[\d|x]+\.[\d|x]+.[\d|x]+(?:-\w+(?:\.\w+)?)?/m';
4+
$path = __DIR__ . '/../src/Sentry/Laravel/Version.php';
45

5-
$result = preg_replace($re, $argv[1], file_get_contents('../src/Sentry/Laravel/Version.php'));
6-
file_put_contents('../src/Sentry/Laravel/Version.php', $result);
6+
file_put_contents($path, preg_replace($re, $argv[1], file_get_contents($path)));

0 commit comments

Comments
 (0)