Skip to content
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

Update Hostname.php #72

Merged
merged 3 commits into from
Jun 9, 2020
Merged

Update Hostname.php #72

merged 3 commits into from
Jun 9, 2020

Conversation

SanderVanLeeuwen
Copy link

Update list of available tlds based on https://data.iana.org/TLD/tlds-alpha-by-domain.txt

SanderVanLeeuwen and others added 2 commits May 20, 2020 16:59
Change project name
composer.json Outdated
@@ -1,5 +1,5 @@
{
"name": "shardj/zf1-future",
"name": "sandervanleeuwen/zf1-future",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to remove this change and I'll merge the PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. I changed the name in order to use my fork as an alternative for composer until these changes have been merged, but should probably have done so on a different branch. Reverted it now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this happened because you created pull request from your master branch.

@Shardj
Copy link
Owner

Shardj commented Jun 5, 2020

Sorry for taking so long to get around to you. By the way I highly recommend you change over to use https://github.com/jeremykendall/php-domain-parser or another library

@SanderVanLeeuwen
Copy link
Author

Thanks for the suggestion. I do like the idea, but we use the old Zend validation mechanisms here and there. It's a bit much to replace those validation classes with a completely different library for the support of one or two additional tld's (which are barely used by our userbase anyway).

@Shardj Shardj merged commit 93c8044 into Shardj:master Jun 9, 2020
@glensc
Copy link
Collaborator

glensc commented Sep 10, 2021

@SanderVanLeeuwen did you use some script to update this? please share!

@Shardj
Copy link
Owner

Shardj commented Sep 11, 2021

I would guess that it was a simple copy paste along with some regex substitutions to add in commas and indentation. Something like:

Capture: `^([A-Z\-0-9]+)$`

Replace: `        \L$1,`

Here's a regex 101 link. https://regex101.com/r/KAC7yw/1

@glensc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants