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

en_GB localization #9

Merged
merged 13 commits into from
Oct 17, 2011
Merged

en_GB localization #9

merged 13 commits into from
Oct 17, 2011

Conversation

applestump
Copy link
Contributor

en_GB localization, appears to work well, still needs tests written.

@@ -81,7 +81,7 @@ class Address extends \Faker\Provider\Base
*/
public static function postcode()
{
return static::numerify(static::randomElement(static::$postcode));
return strtoupper(static::bothify(static::randomElement(static::$postcode)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To add flexibility to allow postcodes such as AB12 3CD but still parse US zip codes

fzaninotto added a commit that referenced this pull request Oct 17, 2011
@fzaninotto fzaninotto merged commit 0ae2b06 into fzaninotto:master Oct 17, 2011
@fzaninotto
Copy link
Owner

Awesome! Thanks for the PR.

mgriffin pushed a commit to mgriffin/Faker that referenced this pull request Feb 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants