ngneat / falso

All the Fake Data for All Your Real Needs 🙂

Home Page:https://ngneat.github.io/falso/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

randWord sometimes generates one letter

Hypenate opened this issue · comments

commented

Is this a regression?

No

Description

When using randWord() it sometimes only gives you one letter, a letter is not a word.

image

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

If you agree, I can do a PR.
A quick check if the length > 1 can be sufficient, if not we regenerate

I don't think there is another way because falso uses Fako?

Do you want to create a pull request?

Yes

Sure, go ahead.