Change default word filtering strategy to fail #3263
Labels
breaking change
Cannot be merged when next version is not a major release
c: refactor
PR that affects the runtime behavior, but doesn't add new features or fixes bugs
m: word
Something is referring to the word module
p: 1-normal
Nothing urgent
s: needs decision
Needs team/maintainer decision
Milestone
faker/test/modules/word.spec.ts
Lines 66 to 73 in d31579b
IMO if the user specifies a specific length for their words, then by default it should fail if the request cannot be fulfilled.
If the user wants a different behavior, then they can still define an explicit error handling strategy.
Found while looking at: #3261
word.ts
contains a single character in the pool #3261The text was updated successfully, but these errors were encountered: