Whitespace not normalized for UK postcodes

Skip to first unread message

Simon Gabler

Aug 2, 2013, 12:59:46 PM8/2/13
to ruby-...@googlegroups.com
Hi, just noticed that the whitespace is not normalized for UK postcodes. Example:

2.0.0-p247 > Faker::Address.postcode
 => "R3V  9JY"

Not really a big issue, but it actually messes up my client-side form validation. Good thing there is squeeze(' ')

Just wanted to report it here - should this be an issue on GitHub?

Benjamin Curtis

Aug 2, 2013, 1:39:54 PM8/2/13
to ruby-...@googlegroups.com
Yes it should, thanks!

Benjamin Curtis 
http://www.honeybadger.io - Modern error tracking for Rails apps

You received this message because you are subscribed to the Google Groups "Ruby Faker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-faker+...@googlegroups.com.
To post to this group, send email to ruby-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-faker.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
0 new messages