{"action":"created","issue":{"url":"https://api.github.com/repos/medialize/URI.js/issues/236","labels_url":"https://api.github.com/repos/medialize/URI.js/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/medialize/URI.js/issues/236/comments","events_url":"https://api.github.com/repos/medialize/URI.js/issues/236/events","html_url":"https://github.com/medialize/URI.js/issues/236","id":98010511,"number":236,"title":"Should segment() take care of leading slash?","user":{"login":"orlando","id":849872,"avatar_url":"https://avatars.githubusercontent.com/u/849872?v=3","gravatar_id":"","url":"https://api.github.com/users/orlando","html_url":"https://github.com/orlando","followers_url":"https://api.github.com/users/orlando/followers","following_url":"https://api.github.com/users/orlando/following{/other_user}","gists_url":"https://api.github.com/users/orlando/gists{/gist_id}","starred_url":"https://api.github.com/users/orlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlando/subscriptions","organizations_url":"https://api.github.com/users/orlando/orgs","repos_url":"https://api.github.com/users/orlando/repos","events_url":"https://api.github.com/users/orlando/events{/privacy}","received_events_url":"https://api.github.com/users/orlando/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medialize/URI.js/labels/Path","name":"Path","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-29T19:21:39Z","updated_at":"2015-09-02T20:58:10Z","closed_at":null,"body":"I'm using URI.js to append a cdn host to URLs, the problem is that some assets have a leading slash and other don't.\r\n\r\nShould `segment()` method take care of this?\r\n\r\n## Example\r\n\r\n```\r\nURI('https://google.com').segment('font.ttf').toString() //-> https://google.com/font.ttf\r\nURI('https://google.com').segment('/font.ttf').toString() //-> https://google.com//font.ttf\r\n```\r\nResult of second example should be like the first one.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/medialize/URI.js/issues/comments/137242419","html_url":"https://github.com/medialize/URI.js/issues/236#issuecomment-137242419","issue_url":"https://api.github.com/repos/medialize/URI.js/issues/236","id":137242419,"user":{"login":"orlando","id":849872,"avatar_url":"https://avatars.githubusercontent.com/u/849872?v=3","gravatar_id":"","url":"https://api.github.com/users/orlando","html_url":"https://github.com/orlando","followers_url":"https://api.github.com/users/orlando/followers","following_url":"https://api.github.com/users/orlando/following{/other_user}","gists_url":"https://api.github.com/users/orlando/gists{/gist_id}","starred_url":"https://api.github.com/users/orlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlando/subscriptions","organizations_url":"https://api.github.com/users/orlando/orgs","repos_url":"https://api.github.com/users/orlando/repos","events_url":"https://api.github.com/users/orlando/events{/privacy}","received_events_url":"https://api.github.com/users/orlando/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T20:58:10Z","updated_at":"2015-09-02T20:58:10Z","body":"@rodneyrehm actually I made the fix, but totally forgot about the PR. Thanks for the heads up, I'll make the PR between tonight and tomorrow."}}