Skip to content

Commit

Permalink
More examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport committed Jul 17, 2022
1 parent 3ba0aee commit 90f3be1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import io.chrisdavenport.publicsuffix.PublicSuffix
// On the jvm you have a global
val ps = PublicSuffix.global

ps.publicSuffix("baz.blah.foo.r.appspot.com")
ps.publicSuffix("foo")
ps.publicSuffix("christopherdavenport.github.io")
ps.publicSuffix("com") // tld
ps.publicSuffix("christopherdavenport.github.io") // registrableDomain from a hard rule
ps.publicSuffix("foo.ck") // Wildcard
ps.publicSuffix("www.ck") // Exception
ps.publicSuffix("myExample.இந்தியா") // utf-8
ps.publicSuffix("baz.blah.foo.r.appspot.com") // Extra domain segments
```

A note on using it from different targets. If you are using node/jvm you can get a current version
Expand Down

0 comments on commit 90f3be1

Please sign in to comment.