[*] FS.cpp bugs regarding expanding "<char>/"

This commit is contained in:
Reece Wilson 2022-04-03 00:29:49 +01:00
parent d37eaf6f30
commit cfca09d0da

View File

@ -29,7 +29,7 @@ namespace Aurora::IO::FS
/**
Resolve special character prefixes
*/
if ((path.size() > 2) && (requireMountExpand))
if ((path.size() >= 2) && (requireMountExpand))
{
if (path[1] == kPathSplitter)
{
@ -189,9 +189,9 @@ namespace Aurora::IO::FS
}
// plus this, i guess
if (str.size() > 2)
if (str.size() >= 2)
{
if (str[1] == kPathSplitter)
if ((str[1] == '\\') || (str[1] == '/'))
{
auto c = str[0];
if ((c == '.') || (c == '~') || (c == '!') || (c == '?' || (c == '^')))