component / url

url parsing utility
47 stars 12 forks source link

Is kaerus' urlparser a more flexible solution? #10

Open dandv opened 10 years ago

dandv commented 10 years ago

See https://github.com/kaerus-component/urlparser/issues/2:

The parsing is completely different, I use regular expressions that works in all .js engines. The one you are referring to works only in browsers using the DOM. I also allow other protocols than http & https so that you can use any type of url such as ftp://user:pass@ftp.server.com. It also handles "git styled" urls such as git://user:pass@mygit.server.com:1234/path:myrepo. To compare, just throw different types of urls onto each library and examine the resulting object.

jonathanong commented 10 years ago

i'm not sure what the question is. he pretty much sums it up

dandv commented 10 years ago

Wonder how useful this repo is, if there's a better solution.

jonathanong commented 10 years ago

most of the repos in this org are specifically for browsers and leverages the DOM. if you want a full blown url parser then use a full blown url parser. most apps don't care about git or ftp urls.