Correct range of A-z regexp

Bug: T362829
Change-Id: I8277012a26792b53f04e2bc9ae9195c646d60cf6
This commit is contained in:
Derk-Jan Hartman 2024-11-10 12:11:13 +01:00
parent 0f352ebbcb
commit 1ba15f31cf

View file

@ -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 );
}
}