1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 16:29:55 +01:00

Merge pull request #61 from blaugueux/email-space

Remove spaces in generated emails.
This commit is contained in:
Francois Zaninotto 2012-10-17 23:23:55 -07:00
commit 7f1e1cda75

View File

@ -29,7 +29,7 @@ class Internet extends \Faker\Provider\Base
public function email()
{
$format = static::randomElement(static::$emailFormats);
return $this->generator->parse($format);
return preg_replace('/\s/', '', $this->generator->parse($format));
}
/**