We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfb8da commit 4c12518Copy full SHA for 4c12518
1 file changed
src/random.ts
@@ -326,7 +326,7 @@ export class Random {
326
const randomWordMethod = this.faker.random.arrayElement(wordMethods);
327
328
result = randomWordMethod();
329
- } while (bannedChars.some((char) => result.includes(char)));
+ } while (!result || bannedChars.some((char) => result.includes(char)));
330
331
return this.faker.random.arrayElement(result.split(' '));
332
}
0 commit comments