Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit 70f7216

Browse files
committed
Tweak regex
1 parent fb2893d commit 70f7216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Faker/Provider/InternetTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testUsernameIsValid($locale)
6464
}
6565

6666
$this->loadLocalProviders($locale);
67-
$pattern = '/^(?![._])[A-Za-z0-9._]+(?<![._])$/';
67+
$pattern = '/^[A-Za-z0-9]+([._][A-Za-z0-9]+)*$/';
6868
$username = $this->faker->username();
6969
$this->assertRegExp($pattern, $username);
7070
}

0 commit comments

Comments
 (0)