summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/str.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index 5eb93cf..c176f6e 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -294,7 +294,10 @@ bool String::Match(const String& Expression) const
return false;
if (Begin && (Result != 0))
- return false;
+ {
+ if ((Result != 1) || ((GetAt(Result-1) != '_') && (GetAt(Result-1) != '~')))
+ return false;
+ }
if (WholeWord)
{