Skip to content
Snippets Groups Projects
Commit b3ae393f authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Fix condition not to continue when equal text length is hit.

parent 261c5b03
Branches
No related merge requests found
......@@ -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 += " ";
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment