mirror of
https://gitee.com/actframework/actframework.git
synced 2024-11-29 18:37:37 +08:00
fix index error when process string substitution
This commit is contained in:
parent
2554aced98
commit
23dd97beea
@ -312,8 +312,9 @@ public class TestSession extends LogSupport {
|
||||
buf.append(getVal(key, payload));
|
||||
}
|
||||
n = s.indexOf("${", a);
|
||||
a++;
|
||||
if (n < 0) {
|
||||
buf.append(s.substring(a + 1));
|
||||
buf.append(s.substring(a));
|
||||
return buf.toString();
|
||||
}
|
||||
z = n;
|
||||
|
Loading…
Reference in New Issue
Block a user