Closed
Description
Describe the bug
The pool of strings from which random.words()
pulls values includes strings that have parentheses, e.g. Cocos (Keeling) Islands
and Killer Whale (Orca)
. This can result in (Keeling)
and (Orca)
being returned.
There's a larger problem here of non-alphabetic characters being returned in words. Obviously some non-alpha characters are desired in words, e.g. -
, but some are not. We should decide on the set of acceptable characters that word()
can return and regex the others out.
Reproduction
Mock faker.fake
with the above mentioned values and you can see the bad returns.