From a422fca50d4107eb33393ddcd4bc4a580e2f71a1 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 15 Jun 2018 06:50:25 -0400 Subject: [PATCH] fix regex --- vnr/profile/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnr/profile/misc.cpp b/vnr/profile/misc.cpp index b0f6068..efeaf4c 100644 --- a/vnr/profile/misc.cpp +++ b/vnr/profile/misc.cpp @@ -117,7 +117,7 @@ bool Parse(const std::wstring& cmd, HookParam& hp) // ":GDI.dll" -> MODULE_OFFSET && module != NULL // ":GDI.dll:strlen" -> MODULE_OFFSET | FUNCTION_OFFSET && module != NULL && function != NULL // ":GDI.dll:#123" -> MODULE_OFFSET | FUNCTION_OFFSET && module != NULL && function != NULL - std::wstring module(L"([[:graph:]]+)"), name(L"[[:graph:]]+"), ordinal(L"\\d+"); + std::wstring module(L"([^:[:space:]]+)"), name(L"[^:[:space:]]+"), ordinal(L"\\d+"); rx = wregex(L"^:(" + module + L"(:" + name + L"|#" + ordinal + L")?)?$", wregex::icase); result = regex_search(start, end, m, rx); if (result) // :[module[:{name|#ordinal}]]