Commit dd46e406 authored by twanvl's avatar twanvl

fixed bug in filter_text: it was doing something completely incorrect

parent b4ce292c
...@@ -154,7 +154,7 @@ SCRIPT_FUNCTION_WITH_SIMPLIFY(filter_text) { ...@@ -154,7 +154,7 @@ SCRIPT_FUNCTION_WITH_SIMPLIFY(filter_text) {
while (match->matches(results, input, start, in_context)) { while (match->matches(results, input, start, in_context)) {
// match, append to result // match, append to result
ScriptRegex::Results::const_reference pos = results[0]; 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; start = pos.second;
} }
SCRIPT_RETURN(ret); SCRIPT_RETURN(ret);
......
Markdown is supported
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