summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/str.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/str.cpp b/common/str.cpp
index d7b59dd..5eb93cf 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -303,6 +303,9 @@ bool String::Match(const String& Expression) const
if ((End != 0) && (End != ' '))
return false;
+ if ((Result != 0) && ((GetAt(Result-1) == '_') || (GetAt(Result-1) == '~')))
+ Result--;
+
if ((Result != 0) && (GetAt(Result-1) != ' '))
return false;
}