{"action":"created","issue":{"url":"https://api.github.com/repos/webmozart/path-util/issues/15","labels_url":"https://api.github.com/repos/webmozart/path-util/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/webmozart/path-util/issues/15/comments","events_url":"https://api.github.com/repos/webmozart/path-util/issues/15/events","html_url":"https://github.com/webmozart/path-util/pull/15","id":103015017,"number":15,"title":"New class Url as addition for a later Puli PR (2nd attempt)","user":{"login":"SenseException","id":859964,"avatar_url":"https://avatars.githubusercontent.com/u/859964?v=3","gravatar_id":"","url":"https://api.github.com/users/SenseException","html_url":"https://github.com/SenseException","followers_url":"https://api.github.com/users/SenseException/followers","following_url":"https://api.github.com/users/SenseException/following{/other_user}","gists_url":"https://api.github.com/users/SenseException/gists{/gist_id}","starred_url":"https://api.github.com/users/SenseException/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SenseException/subscriptions","organizations_url":"https://api.github.com/users/SenseException/orgs","repos_url":"https://api.github.com/users/SenseException/repos","events_url":"https://api.github.com/users/SenseException/events{/privacy}","received_events_url":"https://api.github.com/users/SenseException/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-25T12:50:54Z","updated_at":"2015-10-25T08:28:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webmozart/path-util/pulls/15","html_url":"https://github.com/webmozart/path-util/pull/15","diff_url":"https://github.com/webmozart/path-util/pull/15.diff","patch_url":"https://github.com/webmozart/path-util/pull/15.patch"},"body":"Changes suggested in #12 are now commited.\r\n\r\nShould `Url` be a part of the current readme?"},"comment":{"url":"https://api.github.com/repos/webmozart/path-util/issues/comments/150900401","html_url":"https://github.com/webmozart/path-util/pull/15#issuecomment-150900401","issue_url":"https://api.github.com/repos/webmozart/path-util/issues/15","id":150900401,"user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T08:28:20Z","updated_at":"2015-10-25T08:28:20Z","body":"I think the expected data should be:\r\n\r\n```php\r\narray('../style.css', '', '../style.css'),\r\narray('../style.css', '/', 'style.css'),\r\n```\r\n\r\nThe `Path` classes treat empty strings like the \"current directory\" (`.` on Unix), so the first case should return the relative path unchanged. The second path has a clear base - the root. Since we can't move outside the root, the dot segments should be stripped.\r\n\r\nDoes this make sense?"}}