Skip to content

Commit 12f91cd

Browse files
committed
Use peek()
1 parent 6e9805e commit 12f91cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commonmark/src/main/java/org/commonmark/internal/InlineParserImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ private boolean parseNewline() {
388388
}
389389

390390
// gobble leading spaces in next line
391-
while (index < input.length() && input.charAt(index) == ' ') {
391+
while (peek() == ' ') {
392392
index++;
393393
}
394394
return true;

0 commit comments

Comments
 (0)