Skip to content

Commit

Permalink
Update README.md, tabs to spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Sangeelee committed Feb 26, 2020
1 parent 8ccdd8b commit 979bad2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ The API to check the host/domain part of a URL is: -
// public_suffix_list.dat comes from https://publicsuffix.org/
String filename = "public_suffix_list.dat";
PublicSuffixList psl = new PublicSuffixList(filename);
String etld = psl.getETLD("www.example.co.uk");
// etld is "co.uk"
String etld = psl.getETLD("www.example.co.uk");
// etld is "co.uk"
```
Returns the substring that should be considered the TLD. If the domain does not
match any entry from the Public Suffix List, then the first part of the domain
Expand Down

0 comments on commit 979bad2

Please sign in to comment.