-
Notifications
You must be signed in to change notification settings - Fork 0
jgwhite/url_matcher
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
URLMatcher ========== Simple utility class, feed it a url and it behaves like the native Location object. Usage ----- var matcher = new URLMatcher('http://www.google.co.uk/search?client=safari&rls=en&q=url_matcher#first'); matcher.protocol() //=> http: matcher.host() //=> www.google.co.uk matcher.pathname() //=> /search matcher.search() //=> ?client=safari&rls=en&q=url_matcher matcher.hash() //=> #first