From 1ba15f31cf539e98e3ed57d26414680cf2f51918 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 10 Nov 2024 12:11:13 +0100 Subject: [PATCH] Correct range of A-z regexp Bug: T362829 Change-Id: I8277012a26792b53f04e2bc9ae9195c646d60cf6 --- tests/phpunit/DomainsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/DomainsTest.php b/tests/phpunit/DomainsTest.php index 4264e44..5d4f958 100644 --- a/tests/phpunit/DomainsTest.php +++ b/tests/phpunit/DomainsTest.php @@ -43,7 +43,7 @@ class DomainsTest extends MediaWikiIntegrationTestCase { // Some arbitrary number as a sanity check $this->assertGreaterThan( 50000, count( $domains ) ); foreach ( $domains as $domain => $subdomain ) { - $this->assertMatchesRegularExpression( '/^[A-z0-9\-\.]*$/', $domain ); + $this->assertMatchesRegularExpression( '/^[a-z0-9\-\.]*$/', $domain ); $this->assertTrue( $subdomain === 0 || $subdomain === 1 ); } }