-
-
Notifications
You must be signed in to change notification settings - Fork 975
fix: adds regex to random.word
to trim unwanted characters
#115
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
fix: adds regex to random.word
to trim unwanted characters
#115
Conversation
Please fix this in based on the main branch, it has nothing to do with the ts migration |
Also folks could just do it manually filter it in their code for now, so I do not see it that high prio |
Yeah, but, it's more elegant if we deal with it ourselves in the codebase 🙂 |
random.word
to trim unwanted charactersrandom.word
to trim unwanted characters
1705b9d
to
23e4498
Compare
Co-authored-by: Shinigami <[email protected]>
Co-authored-by: Shinigami92 <[email protected]>
This needs a rebase against main. |
Co-authored-by: Shinigami <[email protected]>
* docs(index.md): add yarn command in index.md Add yarn install command in the installation section of guide/index.md. * fix: docs/guide/index.md suggestion Co-authored-by: Shinigami <[email protected]> * docs(readme.md): add yarn/pnpm install commands Co-authored-by: fncolon <[email protected]> Co-authored-by: Shinigami <[email protected]> Co-authored-by: fncolon <[email protected]>
I'm not sure that this implementation is correct. It seems like we should be modifying the word dictionary of a locale to be more correct for that locale rather than relying on a regex. |
@damienwebdev That approach might be problematic, as words are generated from multiple methods Line 169 in a973ee1
And some of which, like countries, just have the parenthesis, mostly seen here: We could go through all the locales, but removing unwanted characters might change meaning of the word or make it incomprehensible. For the reasons above, my vote goes to the regex approach. |
54805d4
to
55e93f9
Compare
No description provided.