-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Provider\Internet::domainWord() should produce lowercase results #711
Comments
This happens only when intl extension missing. See code of Provider\Internet::transliterate(), and its latest changes. |
Capital letters are valid in domain names and emails - even if ignored by browsers and mail clients. I wonder what's best for Faker: generate expected output, or unexpected output? I think the latter... |
I think the contrary, as it is very uncommon to encounter capital letters. Also just to make clear, they are not simply ignored by clients, the spec is case-insensitivity. If you want to cover more cases, you might consider:
|
Fixed by #725 |
I just tripped over this. Good to see that it is already fixed. @fzaninotto is there any chance we see a new release (bug fix/patch or minor, I don't care) which contains this fix any time soon? The last release, v1.5.0, was released quite some time ago and people could make use the those 192 commits integrated since. I'd be happy to help, if I can. |
@ravage84 not in 2015. If you want to help, well there is a lot to do:
|
Using
$faker->domainName()
, I noticed the results were capitalized.companyEmail()
is also affected, as it usesdomainName()
.It is because the underlying
domainWord()
usesProvider\Person::lastName()
(with localization and transliteration), but keeping the initial capital.I think the expected behaviour is undoubtedly to have lowercase results.
The text was updated successfully, but these errors were encountered: