summaryrefslogtreecommitdiff
path: root/common/str.cpp
diff options
context:
space:
mode:
authorleo2006-02-22 06:07:53 +0000
committerleo2006-02-22 06:07:53 +0000
commitbbaf5427cfd8c064a7daf0880fba0d8d5c7a8ab3 (patch)
tree96e064f10b445bfb2335e702b6b513b00e8db7cf /common/str.cpp
parent23861c92574c28b41673e3d70f5cf57546af3563 (diff)
Fixed start of string matching.
git-svn-id: http://svn.leocad.org/trunk@488 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/str.cpp')
-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)
{