[Style] Fix GetFileNameWithoutExtension

This commit is contained in:
Matt Nadareski
2017-03-29 13:46:00 -07:00
parent 7d3691a51b
commit 713a71b8af

View File

@@ -558,6 +558,10 @@ namespace SabreTools.Helper.Tools
{
s = GetFileName(s);
string[] tempkey = s.Split('.');
if (tempkey.Count() == 1)
{
return s;
}
return String.Join(".", tempkey.Take(tempkey.Length - 1));
}