-
-
Notifications
You must be signed in to change notification settings - Fork 943
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: ASCII-fy domainWord()
#1520
Conversation
AFAICT: |
Yes, might make more sense. I altered the Regex that filteres illegal characters in |
if #1554 gets merged then you would be able to use the new version of |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #1520 +/- ##
==========================================
- Coverage 99.64% 99.63% -0.01%
==========================================
Files 2221 2221
Lines 240110 240108 -2
Branches 1051 1049 -2
==========================================
- Hits 239248 239236 -12
- Misses 841 851 +10
Partials 21 21
|
From what I've seen this is right. But that would mean:
As I said here:
Additionally, internationalized domain names are converted to ASCII compatible encoding on the client when using them. They simply don't exist when building servers. Btw, I noticed I forgot to re-add |
@schw4rzlicht I highly assume he meant using it inside faker in this PR, not in your code to wrap faker calls. |
right could you change domainWord to just be something like
|
Ah alright, misunderstood that, sorry 🤦 Thanks @matthewmayer, I will update the PR EDIT: Wasn't able to do it yet, too much work on other projects. Will do asap though. |
en
localedomainWord()
The
en
locale includes the word "jalapeño" which is the only one with a special char. Imo this is inconsistent and it leads to other problems as well, see #1105 (comment) for example.This PR removes the word from the locale.This PR uses
faker.helpers.slugify()
to remove non-ASCII characters fromdomainWord()
.