mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SecureLinkFixer
synced 2024-11-13 18:27:04 +00:00
Correct range of A-z regexp
Bug: T362829 Change-Id: I8277012a26792b53f04e2bc9ae9195c646d60cf6
This commit is contained in:
parent
0f352ebbcb
commit
1ba15f31cf
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue