diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-02-05 18:37:22 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-02-05 12:37:22 -0500 |
commit | aaccb1226e6051829c295ad192ed89a00dbd4c98 (patch) | |
tree | c1860c41b45b97348ed23ffbe0e91601462fd8c3 /vendor/github.com/icrowley/fake | |
parent | 31c9877102437c8c5ac5702b2fbbdfeb7b2c9b83 (diff) | |
download | chat-aaccb1226e6051829c295ad192ed89a00dbd4c98.tar.gz chat-aaccb1226e6051829c295ad192ed89a00dbd4c98.tar.bz2 chat-aaccb1226e6051829c295ad192ed89a00dbd4c98.zip |
Fix sampledata (fake library) bug (#8198)
Diffstat (limited to 'vendor/github.com/icrowley/fake')
-rw-r--r-- | vendor/github.com/icrowley/fake/data.go | 6 | ||||
-rw-r--r-- | vendor/github.com/icrowley/fake/data/en/jobs_suffixes | 4 | ||||
-rw-r--r-- | vendor/github.com/icrowley/fake/jobs.go | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/vendor/github.com/icrowley/fake/data.go b/vendor/github.com/icrowley/fake/data.go index c86408099..7249a9d38 100644 --- a/vendor/github.com/icrowley/fake/data.go +++ b/vendor/github.com/icrowley/fake/data.go @@ -229,6 +229,12 @@ var data = map[string]*file{ compressed: "\x1f\x8b\b\x00\x00\tn\x88\x00\xffdU]r\xe36\f~\xd7)8\xd3\x03\xf4\f\xa9㵷\xb3\x89\xd5\xc8\xd3<3\x14$q#\x91\x1a\xfex\xe3\xe9\xf4\xee\v\x88\xa4H\xc9/\x1e\xf3\x03 \x02\x1f>\x80OBh\xaf\x1c;hmZ\xa9\xb8ӦJ\xd8\xf1\v\x84w\xf2\x06+\xf2\x06\xb3\x01\v\xcaq\x82\xd9\x1f\xff\xbd\xfe\x9fl\x1c\xcd\xe5Y\xaa\x9e=Y+miq\x9e\x9b{\xf5\xd4NR\xa1\xc1\x84\xaf콶\xd6K\xd7I\x01\x98\x94\xe2\xa3\xee\xd9A\x1a\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\xd8n\x90\x02K7\xbc`\xfe<\xaa<^\xbeR\x15\x06<z\x86\"^\xbd\x18\x81\x1bV\xeb_\b\xad\x9e\xaf\xdeX\b\xbf8\xea\\\xd0\x00kb\xf3\"\x84\x9f\x97\xdaH\x00\x03\xd27S\x03\xc3>\xda3\xb4\xd2[s\xec\"\x15\x86\xff\xeea\x92۟\u07ba\xe5o9\x1b\xf5\xc0\x91:A\x9f\xac\x87\xbb]\xca\b\xb7܋\xaaq\xf9\xb4^\xb8\x9cn\xdeFyՅ\x14\x8a\xf3fJ\x11\xff\x89\n[i\xfbǣ\xc2q\t\x1c\xb4rFoD\x9fL\xebmo(tܶ\xf9_\xc9\xff\x1b\x90\x16\xc1@\xcb\x02\x89(\x10$\x18\xb5\xb7#\xa7\xc4\xc3R\xcdP\x88lx\axoVd\b\\\x86\xb9\x88\n\xe7\xed#T5\xb0\xe8j\xbf\x8c\"\xbc\xae\x8a\x04\xc4\xd5\x10O\x8f\xd3\x1a\r\x0fTD\xfc!%\xbdD\xbfkT':\xe9\xce\xfd\xe2\x06\x88\\\xebǐH¶\x9bg\x85\xaf`\xdd\xde6\x032\xc1j\xee\x868\xf1U\xe3xױ\xfd[\x1b\xd0F\xe0\nu\xd1k\xf7\x065Π~\xbcY+\x94Ŕ\x14ƌ\xa5M\xff\xb8\xb2\xaf\xfc\xabd\xf8JO\bF\xe4u\xf6n\x16\xad\xfc[\xb3\xfc\xe6\xd1i\x9d]:$I\a\x19\xd1\\\x10\xbaS%Aa\x95\xbf\xc3Ǻ\xe1B\x1a\x01ټ\x00\xbf\x03\x00\x00\xff\xff\xb11\x04X\xc6\b\x00\x00", }, + "/data/en/jobs_suffixes": { + local: "data/en/jobs_suffixes", + size: 12, + compressed: "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xf2\xe4\xf2\x04\x21\x4f\x2e\xcf\x30\x2e\x40\x00\x00\x00\xff\xff\xa5\x82\x0b\x05\x0c\x00\x00\x00", + }, + "/data/en/languages": { local: "data/en/languages", size: 821, diff --git a/vendor/github.com/icrowley/fake/data/en/jobs_suffixes b/vendor/github.com/icrowley/fake/data/en/jobs_suffixes new file mode 100644 index 000000000..05d9eb526 --- /dev/null +++ b/vendor/github.com/icrowley/fake/data/en/jobs_suffixes @@ -0,0 +1,4 @@ +I +II +III +IV diff --git a/vendor/github.com/icrowley/fake/jobs.go b/vendor/github.com/icrowley/fake/jobs.go index a497e5da7..6895c7c95 100644 --- a/vendor/github.com/icrowley/fake/jobs.go +++ b/vendor/github.com/icrowley/fake/jobs.go @@ -1,5 +1,9 @@ package fake +import ( + "strings" +) + // Company generates company name func Company() string { return lookup(lang, "companies", true) @@ -8,7 +12,7 @@ func Company() string { // JobTitle generates job title func JobTitle() string { job := lookup(lang, "jobs", true) - return join(job, jobTitleSuffix()) + return strings.Replace(job, "#{N}", jobTitleSuffix(), 1) } func jobTitleSuffix() string { |