Commit 5b6a0d07 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(template) Fix substring unique modifier range computation

issue #5882
Showing with 1 addition and 1 deletion
+1 -1
......@@ -349,7 +349,7 @@ class templateHandling
}
if (preg_match('/^(\d+)-(\d+)$/', $args[1], $m)) {
$res = array();
for ($i = $m[1];$i < $m[2]; ++$i) {
for ($i = $m[1];$i <= $m[2]; ++$i) {
$res[] = mb_substr($str, $args[0], $i);
}
return array_unique($res);
......
Supports Markdown
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