From b3ae393faef8409126fd738874eb7153c3c6c707 Mon Sep 17 00:00:00 2001
From: Adam Wardynski <award@.(win7-laptop)>
Date: Thu, 21 Apr 2011 19:18:10 +0200
Subject: [PATCH] Fix condition not to continue when equal text length is hit.

---
 libwccl/ops/match/conditions/matchtext.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libwccl/ops/match/conditions/matchtext.cpp b/libwccl/ops/match/conditions/matchtext.cpp
index 60e7c37..aecd31e 100644
--- a/libwccl/ops/match/conditions/matchtext.cpp
+++ b/libwccl/ops/match/conditions/matchtext.cpp
@@ -13,7 +13,7 @@ MatchResult MatchText::apply(const ActionExecContext& context) const
 	
 	UnicodeString sent_frag(sc.at(orig_iter)->orth());
 	int iter_pos = orig_iter + 1;
-	while(sent_frag.length() <= text_.length() && iter_pos < sc.size()) {
+	while(sent_frag.length() < text_.length() && iter_pos < sc.size()) {
 		if (sc.at(iter_pos)->wa() != PwrNlp::Whitespace::None) {
 			sent_frag += " ";
 		}
-- 
GitLab