@@ -14,15 +14,15 @@ We have received feedback from software developers who were confused about how t
14
14
specific cases. Examples include but are not limited to:
15
15
* URLs:
16
16
* We consider URLs that do not have a scheme as valid.
17
- This is a clear violation of [ RFC #3986 ] ( https://www.rfc-editor.org/rfc/rfc3986.txt )
17
+ This is a clear violation of [ RFC #3986 ] ( https://www.rfc-editor.org/rfc/rfc3986.txt )
18
18
that says * The scheme and path components are required, (...)* .
19
19
We are doing this because of several of our own use cases where we had to process large lists of URLs that did
20
20
not contain a scheme in each end every case. We neither wanted to add a scheme like ` http:// ` by default nor simply
21
- reject entries. If you, however, need a URL that fully complies to RFC #3986
22
- (e.g. because you want to use it with other libraries), please call ``` NormaliseURLSchema() ``` .
21
+ reject entries. If you, however, need a URL that fully complies to RFC #3986
22
+ (e.g. because you want to use it with other libraries), please call ` NormaliseURLSchema() ` .
23
23
* Domains
24
24
* To get an idea, what a valid domain name looks like, we use the list of TLDs (top-level-domains) from
25
- [ IANA ] ( https://data.iana. org/TLD/tlds-alpha-by-domain.txt ) .
25
+ [ PublicSuffixes.org ] ( " https://publicsuffix. org/list/public_suffix_list.dat" ) .
26
26
* FQDNs
27
27
* _ www.site.tld _ ** is not** a URL but a FQDN (fully qualified domain name), because it neither has a path component
28
28
nor a schema (` http:// ` , ` https:// ` , etc.).
@@ -40,4 +40,4 @@ If something still does not make sense, let us know by starting a discussion or
40
40
Release under the MIT License. (see LICENSE)
41
41
42
42
## QA
43
- [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/01c46c2a6f10458f8e7f09fff5ae1915 )] ( https://app.codacy.com/gh/THREATINT/go-net/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade )
43
+ [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/01c46c2a6f10458f8e7f09fff5ae1915 )] ( https://app.codacy.com/gh/THREATINT/go-net/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade )
0 commit comments