Skip to content

Commit e58db93

Browse files
author
burdo
committed
slight pass detection improvement
1 parent f648fd1 commit e58db93

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/de/kaleidox/workbench/flk/converter/CheckParserEntry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ private void accept(BetterIterator<String> iter, Check.Builder check) {
3838

3939
{
4040
while (!buf.startsWith("LIMIT")) {
41-
check.value(parse(getName()));
41+
if (!buf.matches(".+\\sP"))
42+
check.value(parse(getName()));
4243
buf = iter.next();
4344
}
4445

src/main/java/de/kaleidox/workbench/flk/converter/LineParserEntry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ protected String readString(BetterIterator<String> iter, int lines) {
139139
current = current.substring(getName().length() + 2);
140140
val.append(current);
141141
iter.next();
142-
} while (i++ < lines);
142+
} while (++i < lines);
143+
iter.previous();
143144
return val.toString().trim();
144145
}
145146

0 commit comments

Comments
 (0)