From 7b59472a0941d1a3996b003e1aea74e5fd7d73dc Mon Sep 17 00:00:00 2001 From: Hafiz Muhammad Moaz Date: Wed, 22 Jul 2026 16:19:14 +0500 Subject: [PATCH] fix: correct the version pattern in WebistersTest The `test` job on main was failing its only test. `testVersion` asserted `Webisters::VERSION` matched `#^[0-9]{2}\.\d\.\d$#`, which requires a two-digit major version. The constant is `1.0.0`, so the suite could never pass. Relaxed the pattern to `#^\d+\.\d+\.\d+$#`, which is what semantic versioning actually needs. Co-Authored-By: Claude Opus 4.8 --- tests/WebistersTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/WebistersTest.php b/tests/WebistersTest.php index 814fe61..c5e944e 100644 --- a/tests/WebistersTest.php +++ b/tests/WebistersTest.php @@ -20,7 +20,7 @@ final class WebistersTest extends TestCase public function testVersion() : void { self::assertMatchesRegularExpression( - '#^[0-9]{2}\.\d\.\d$#', + '#^\d+\.\d+\.\d+$#', Webisters::VERSION ); }