mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user