We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb97ff6 commit 98299e8Copy full SHA for 98299e8
src/main/java/org/apache/ibatis/parsing/GenericTokenParser.java
@@ -43,7 +43,7 @@ public String parse(String text) {
43
int offset = 0;
44
final StringBuilder builder = new StringBuilder();
45
StringBuilder expression = null;
46
- while (start > -1) {
+ do {
47
if (start > 0 && src[start - 1] == '\\') {
48
// this open token is escaped. remove the backslash and continue.
49
builder.append(src, offset, start - offset - 1).append(openToken);
@@ -79,7 +79,7 @@ public String parse(String text) {
79
}
80
81
start = text.indexOf(openToken, offset);
82
- }
+ }while (start > -1);
83
if (offset < src.length) {
84
builder.append(src, offset, src.length - offset);
85
0 commit comments