From 6b39fa844bd232b91a4a825e0b7f10e8ce027cf8 Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 29 Dec 2008 18:43:05 +0000 Subject: [PATCH] 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 --- src/script/functions/regex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/functions/regex.cpp b/src/script/functions/regex.cpp index fd94bfa8..5ff8f10a 100644 --- a/src/script/functions/regex.cpp +++ b/src/script/functions/regex.cpp @@ -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);