mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Style] Fix GetFileNameWithoutExtension
This commit is contained in:
@@ -558,6 +558,10 @@ namespace SabreTools.Helper.Tools
|
|||||||
{
|
{
|
||||||
s = GetFileName(s);
|
s = GetFileName(s);
|
||||||
string[] tempkey = s.Split('.');
|
string[] tempkey = s.Split('.');
|
||||||
|
if (tempkey.Count() == 1)
|
||||||
|
{
|
||||||
|
return s;
|
||||||
|
}
|
||||||
return String.Join(".", tempkey.Take(tempkey.Length - 1));
|
return String.Join(".", tempkey.Take(tempkey.Length - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user