Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  fix email set generating invalid data
  • Loading branch information
Baptouuuu committed Feb 23, 2020
2 parents fc755f8 + 95ff4d5 commit 0255715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Set/Email.php
Expand Up @@ -18,10 +18,10 @@ public static function any(): Set
static function(string $address, string $domain, string $tld): string {
return "$address@$domain.$tld";
},
Strings::matching('[a-zA-Z0-9][a-zA-Z0-9+\-\._]{1,64}[a-zA-Z0-9]')->filter(static function(string $string): bool {
Strings::matching('[a-zA-Z0-9][a-zA-Z0-9+\-\._]{1,62}[a-zA-Z0-9]')->filter(static function(string $string): bool {
return !\preg_match('~\.\.~', $string);
}),
Strings::matching('[a-zA-Z0-9][a-zA-Z0-9\-\.]{1,63}[a-zA-Z0-9]')->filter(static function(string $string): bool {
Strings::matching('[a-zA-Z0-9][a-zA-Z0-9\-\.]{1,62}[a-zA-Z0-9]')->filter(static function(string $string): bool {
return !\preg_match('~\.\.~', $string);
}),
Strings::matching('[a-zA-Z]{1,63}'),
Expand Down

0 comments on commit 0255715

Please sign in to comment.