From bbaf5427cfd8c064a7daf0880fba0d8d5c7a8ab3 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 22 Feb 2006 06:07:53 +0000 Subject: Fixed start of string matching. git-svn-id: http://svn.leocad.org/trunk@488 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/str.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common') 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) { -- cgit v1.2.3