lijunle / Vsxmd

VS XML documentation -> Markdown syntax.
MIT License
215 stars 51 forks source link

Use BCL API to change extension instead of Regex #27

Closed atifaziz closed 8 years ago

atifaziz commented 8 years ago

Using Path.ChangeExtension to replace the extension:

// replace extension with `md` extension
markdownPath = Path.ChangeExtension(xmlPath, ".md");

Regex seemed a bit of an overkill for this:

// replace the `xml` extension with `md` extension
markdownPath = Regex.Replace(xmlPath, @"\.xml$", ".md", RegexOptions.IgnoreCase);
atifaziz commented 8 years ago

Rebased on top of master so line-endings should now be normalized.

lijunle commented 8 years ago

Sorry, you might need to rebase it again, or merge it after my previous merge.

atifaziz commented 8 years ago

Okay, rebased once more.

lijunle commented 8 years ago

@atifaziz Thank you very much! :+1: