-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(locale): remove empty string from Hebrew lorem words #3698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for fakerjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
LGTM, perhaps we should add a test to check for empty strings in locale data? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #3698 +/- ##
=======================================
Coverage 99.97% 99.97%
=======================================
Files 2995 2995
Lines 236324 236323 -1
Branches 941 940 -1
=======================================
- Hits 236267 236266 -1
Misses 57 57
🚀 New features to boost your workflow:
|
I'm working on solving #3325. In there we can integrate this for sure 👍 |
xDivisionByZerox
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting that 🙌
Description
Removes an empty string entry from the Hebrew locale's lorem word list (
src/locales/he/lorem/word.ts).Problem
When calling
faker.lorem.words(n)with the Hebrew locale, occasionally one of the returned "words" is an empty string, resulting in unexpected output like" צש התידם"(leading space, only 2 visible words when 3 were requested).Solution
Remove the empty string at line 103 of the word list.
Related Issues
Fixes #3697