Skip to content

Lorem.word() sometimes produces empty word in Hebrew locale #3697

@erezcor

Description

@erezcor

Pre-Checks

Describe the bug

Sometimes when doing fakerHE.lorem.words(x) one of the words is empty string
Probablt stems from https://github.com/faker-js/faker/blob/next/src/locales/he/lorem/word.ts having empty string in line 103

Minimal reproduction code

No response

Additional Context

No response

Environment Info

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 8.23 GB / 31.65 GB
  Binaries:
    Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Users\erezc\AppData\Roaming\npm\yarn.CMD
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 143.0.7499.193
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.26100.7309

Which module system do you use?

  • CJS
  • ESM

Used Package Manager

npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: bugSomething isn't workingc: localePermutes locale definitionss: acceptedAccepted feature / Confirmed bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions