We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8431f6b + 77208a6 commit 5aefc2eCopy full SHA for 5aefc2e
modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
@@ -430,8 +430,8 @@ public static string GetExtension(this string instance)
430
{
431
int pos = instance.RFind(".");
432
433
- if (pos < 0)
434
- return instance;
+ if (pos < 0 || pos < Math.Max(instance.RFind("/"), instance.RFind("\\")))
+ return string.Empty;
435
436
return instance.Substring(pos + 1);
437
}
0 commit comments