-
-
Notifications
You must be signed in to change notification settings - Fork 203
Change Log
Rob edited this page Jan 16, 2016
·
7 revisions
- Update
[]
to{}
for fetching all properties.
- Support for
tld
,domain
andsub domain
. - Comes in two versions
url-tld.min.js
andurl.min.js
. - Support for arrays in query and hash parameters.
- Support for
mailto:
protocol. - Passing
url('[]')
now returns entire parsed object for url. - Passing
url('?')
now returns all query parameters as an object. - To get entire query string use
url('query')
- Passing
url('#')
now returns all hash parameters as an object. - To get entire hash string use
url('hash')
- The
tld
,domain
andsub
arguments are all disabled for the non tld version. - For tld version
tld
,domain
andsub
now return appropriate values (if tld matches). - You can now use
url('/1')
or justurl(1)
for fetching path parts. - Passing
url('/')
will return all path parts as an array. - Passing
url('.')
will return all domain parts as an array. - If no matches found returns
undefined
now in most cases. - Smaller file size, more efficient, simpler code.