woothemes/woocommerce — pull request #502 by GeertDD (2012-01-15 06:38:40+00:00)
Title: Some tweaks to the countries class

The first change makes it easier to maintain the address format replacements, since both the find and replace values are now part of the same array and the values are nicely arranged next to each other.

The second change optimizes the white space related regexes. The old regex would do many useless replacements: for example, it would replace a single space with a single space. The new regex only does useful work. I also removed a set of unused capturing parentheses.