Skip to content

Commit

Permalink
Update ExtFileSystem.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdu088 committed Aug 31, 2024
1 parent a2850d0 commit 12ab1d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SharpExt4/ExtFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#include "io_raw.h"
#include <stdlib.h>

using namespace System::Collections::Generic;

String^ SharpExt4::ExtFileSystem::MountPoint::get()
{
return mountPoint;
Expand Down Expand Up @@ -265,7 +263,7 @@ Regex^ SharpExt4::ConvertWildcardsToRegEx(String^ pattern)
pattern += ".";
}

String^ query = "^" + Regex::Escape(pattern)->Replace("\\*", ".*")->Replace("\\.", ".*") + "$";
String^ query = "^" + pattern->Replace("\\*", ".*")->Replace("\\.", ".*") + "$";
return gcnew Regex(query, RegexOptions::IgnoreCase | RegexOptions::CultureInvariant);
}

Expand Down

0 comments on commit 12ab1d5

Please sign in to comment.