{"action":"created","issue":{"url":"https://api.github.com/repos/lijunle/Vsxmd/issues/27","labels_url":"https://api.github.com/repos/lijunle/Vsxmd/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/lijunle/Vsxmd/issues/27/comments","events_url":"https://api.github.com/repos/lijunle/Vsxmd/issues/27/events","html_url":"https://github.com/lijunle/Vsxmd/pull/27","id":127941124,"number":27,"title":"Use BCL API to change extension instead of Regex","user":{"login":"atifaziz","id":20511,"avatar_url":"https://avatars.githubusercontent.com/u/20511?v=3","gravatar_id":"","url":"https://api.github.com/users/atifaziz","html_url":"https://github.com/atifaziz","followers_url":"https://api.github.com/users/atifaziz/followers","following_url":"https://api.github.com/users/atifaziz/following{/other_user}","gists_url":"https://api.github.com/users/atifaziz/gists{/gist_id}","starred_url":"https://api.github.com/users/atifaziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atifaziz/subscriptions","organizations_url":"https://api.github.com/users/atifaziz/orgs","repos_url":"https://api.github.com/users/atifaziz/repos","events_url":"https://api.github.com/users/atifaziz/events{/privacy}","received_events_url":"https://api.github.com/users/atifaziz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T14:50:13Z","updated_at":"2016-01-22T17:17:38Z","closed_at":"2016-01-22T17:15:51Z","pull_request":{"url":"https://api.github.com/repos/lijunle/Vsxmd/pulls/27","html_url":"https://github.com/lijunle/Vsxmd/pull/27","diff_url":"https://github.com/lijunle/Vsxmd/pull/27.diff","patch_url":"https://github.com/lijunle/Vsxmd/pull/27.patch"},"body":"Using [`Path.ChangeExtension`](https://msdn.microsoft.com/en-us/library/system.io.path.changeextension(v=vs.110).aspx) to replace the extension:\r\n\r\n```c#\r\n// replace extension with `md` extension\r\nmarkdownPath = Path.ChangeExtension(xmlPath, \".md\");\r\n```\r\n\r\n`Regex` seemed a bit of an overkill for this:\r\n\r\n```c#\r\n// replace the `xml` extension with `md` extension\r\nmarkdownPath = Regex.Replace(xmlPath, @\"\\.xml$\", \".md\", RegexOptions.IgnoreCase);\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lijunle/Vsxmd/issues/comments/173982429","html_url":"https://github.com/lijunle/Vsxmd/pull/27#issuecomment-173982429","issue_url":"https://api.github.com/repos/lijunle/Vsxmd/issues/27","id":173982429,"user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T17:17:38Z","updated_at":"2016-01-22T17:17:38Z","body":"@atifaziz Thank you very much! :+1: "}}