diff options
| author | Pat Tullmann <[email protected]> | 2015-09-14 08:59:54 -0700 |
|---|---|---|
| committer | Pat Tullmann <[email protected]> | 2015-09-14 08:59:54 -0700 |
| commit | 1307d20426fbb2fcdaa5451a2f91f3d6ef19e702 (patch) | |
| tree | bcfd5145a00b2bab4205777bdf246caeaade3d1e /lib/address.js | |
| parent | 20ec97b9b7449ba0ca37a90226a8651f18164e53 (diff) | |
| download | faker-1307d20426fbb2fcdaa5451a2f91f3d6ef19e702.tar.xz faker-1307d20426fbb2fcdaa5451a2f91f3d6ef19e702.zip | |
No space before citySuffix in city name
The citySuffix is a real word suffix (like "ton" or "burgh") so there should not be whitespace before it.
(The cityPrefix is a separate word (like "Lake" or "North"), so still needs whitespace.
Diffstat (limited to 'lib/address.js')
| -rw-r--r-- | lib/address.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/address.js b/lib/address.js index 35031a63..e72a2aa8 100644 --- a/lib/address.js +++ b/lib/address.js @@ -17,10 +17,10 @@ function Address (faker) { this.city = function (format) { var formats = [ - '{{address.cityPrefix}} {{name.firstName}} {{address.citySuffix}}', + '{{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}', '{{address.cityPrefix}} {{name.firstName}}', - '{{name.firstName}} {{address.citySuffix}}', - '{{name.lastName}} {{address.citySuffix}}' + '{{name.firstName}}{{address.citySuffix}}', + '{{name.lastName}}{{address.citySuffix}}' ]; if (typeof format !== "number") { |
