Skip to content

Commit 114e692

Browse files
committed
Refactors version test regexp
1 parent 312cffb commit 114e692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Unit/SmsapiHttpClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private function grabVersionFromChangelog()
2424
{
2525
$changelog = file_get_contents(dirname(dirname(__DIR__)) . '/CHANGELOG.md');
2626

27-
preg_match('/^## \[(?<version>Unreleased|\d+.\d+.\d+)\]/m', $changelog, $matches);
27+
preg_match('/^## \[(?<version>Unreleased|\d+.\d+.\d+)]/m', $changelog, $matches);
2828

2929
$this->assertArrayHasKey('version', $matches);
3030

0 commit comments

Comments
 (0)