Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/cs'
Browse files Browse the repository at this point in the history
Updates the TLD list from IANA sources.
  • Loading branch information
weierophinney committed Apr 6, 2016
2 parents ce4ddf8 + 9d4240b commit dbacb36
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 2.7.1 - TBD
## 2.7.1 - 2016-04-06

### Added

Expand All @@ -18,7 +18,7 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- This release updates the TLD list to the latest version from the IANA.

## 2.7.0 - 2016-04-06

Expand Down
32 changes: 31 additions & 1 deletion src/Hostname.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Hostname extends AbstractValidator

/**
* Array of valid top-level-domains
* IanaVersion 2016030200
* IanaVersion 2016040501
*
* @see ftp://data.iana.org/TLD/tlds-alpha-by-domain.txt List of all TLDs by domain
* @see http://www.iana.org/domains/root/db/ Official list of supported TLDs
Expand Down Expand Up @@ -106,12 +106,14 @@ class Hostname extends AbstractValidator
'alibaba',
'alipay',
'allfinanz',
'ally',
'alsace',
'am',
'amica',
'amsterdam',
'analytics',
'android',
'anquan',
'ao',
'apartments',
'app',
Expand All @@ -136,7 +138,9 @@ class Hostname extends AbstractValidator
'author',
'auto',
'autos',
'avianca',
'aw',
'aws',
'ax',
'axa',
'az',
Expand All @@ -149,12 +153,14 @@ class Hostname extends AbstractValidator
'barcelona',
'barclaycard',
'barclays',
'barefoot',
'bargains',
'bauhaus',
'bayern',
'bb',
'bbc',
'bbva',
'bcg',
'bcn',
'bd',
'be',
Expand Down Expand Up @@ -404,6 +410,7 @@ class Hostname extends AbstractValidator
'expert',
'exposed',
'express',
'extraspace',
'fage',
'fail',
'fairwinds',
Expand Down Expand Up @@ -457,6 +464,7 @@ class Hostname extends AbstractValidator
'ga',
'gal',
'gallery',
'gallo',
'gallup',
'game',
'garden',
Expand Down Expand Up @@ -484,6 +492,7 @@ class Hostname extends AbstractValidator
'globo',
'gm',
'gmail',
'gmbh',
'gmo',
'gmx',
'gn',
Expand Down Expand Up @@ -547,6 +556,7 @@ class Hostname extends AbstractValidator
'hr',
'hsbc',
'ht',
'htc',
'hu',
'hyundai',
'ibm',
Expand Down Expand Up @@ -588,6 +598,7 @@ class Hostname extends AbstractValidator
'jaguar',
'java',
'jcb',
'jcp',
'je',
'jetzt',
'jewelry',
Expand All @@ -607,6 +618,9 @@ class Hostname extends AbstractValidator
'kaufen',
'kddi',
'ke',
'kerryhotels',
'kerrylogistics',
'kerryproperties',
'kfh',
'kg',
'kh',
Expand All @@ -621,10 +635,12 @@ class Hostname extends AbstractValidator
'koeln',
'komatsu',
'kp',
'kpmg',
'kpn',
'kr',
'krd',
'kred',
'kuokgroup',
'kw',
'ky',
'kyoto',
Expand Down Expand Up @@ -669,6 +685,7 @@ class Hostname extends AbstractValidator
'lk',
'loan',
'loans',
'locus',
'lol',
'london',
'lotte',
Expand Down Expand Up @@ -748,6 +765,7 @@ class Hostname extends AbstractValidator
'mtr',
'mu',
'museum',
'mutual',
'mutuelle',
'mv',
'mw',
Expand Down Expand Up @@ -779,6 +797,7 @@ class Hostname extends AbstractValidator
'nikon',
'ninja',
'nissan',
'nissay',
'nl',
'no',
'nokia',
Expand Down Expand Up @@ -961,13 +980,16 @@ class Hostname extends AbstractValidator
'sg',
'sh',
'sharp',
'shaw',
'shell',
'shia',
'shiksha',
'shoes',
'shouji',
'show',
'shriram',
'si',
'sina',
'singles',
'site',
'sj',
Expand Down Expand Up @@ -1009,6 +1031,7 @@ class Hostname extends AbstractValidator
'stockholm',
'storage',
'store',
'stream',
'studio',
'study',
'style',
Expand All @@ -1031,6 +1054,7 @@ class Hostname extends AbstractValidator
'sz',
'tab',
'taipei',
'talk',
'taobao',
'tatamotors',
'tatar',
Expand Down Expand Up @@ -1073,6 +1097,7 @@ class Hostname extends AbstractValidator
'top',
'toray',
'toshiba',
'total',
'tours',
'town',
'toyota',
Expand Down Expand Up @@ -1171,6 +1196,7 @@ class Hostname extends AbstractValidator
'wtf',
'xbox',
'xerox',
'xihuan',
'xin',
'कॉम',
'セール',
Expand Down Expand Up @@ -1213,6 +1239,7 @@ class Hostname extends AbstractValidator
'ポイント',
'新闻',
'工行',
'家電',
'كوم',
'中文网',
'中信',
Expand Down Expand Up @@ -1286,6 +1313,7 @@ class Hostname extends AbstractValidator
'vermögensberatung',
'企业',
'信息',
'嘉里大酒店',
'مصر',
'قطر',
'广东',
Expand All @@ -1306,8 +1334,10 @@ class Hostname extends AbstractValidator
'yodobashi',
'yoga',
'yokohama',
'you',
'youtube',
'yt',
'yun',
'za',
'zara',
'zero',
Expand Down

0 comments on commit dbacb36

Please sign in to comment.