fixed bug in filter_text: it was doing something completely incorrect

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1263 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-12-29 18:43:05 +00:00
parent a57170e7c2
commit 6b39fa844b
+1 -1
View File
@@ -154,7 +154,7 @@ SCRIPT_FUNCTION_WITH_SIMPLIFY(filter_text) {
while (match->matches(results, input, start, in_context)) {
// match, append to result
ScriptRegex::Results::const_reference pos = results[0];
ret.append(start, pos.second); // the match
ret.append(pos.first, pos.second); // the match
start = pos.second;
}
SCRIPT_RETURN(ret);