lambdaisland / uri

A pure Clojure/ClojureScript URI library
Mozilla Public License 2.0
243 stars 21 forks source link

`uri` in cljs does not return a `:domain` key #34

Closed conjurernix closed 1 year ago

conjurernix commented 1 year ago

From the readme documentation when parsing a uri you should get a :domain key.

But running the following example in clojurescript does not return it:

(keys (uri/uri "example.com"))
; =>  (:scheme :user :password :host :port :path :query :fragment)
plexus commented 1 year ago

You are right, that seems to be a documentation bug. It should be :host, there's no :domain key.

Would you be interested in making a PR for the README?