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 ba09331 commit 7d922f8Copy full SHA for 7d922f8
src/Gitonomy/Git/Parser/LogParser.php
@@ -51,9 +51,16 @@ protected function doParse()
51
$this->consumeNewLine();
52
53
$message = '';
54
- while ($this->expects(' ')) {
55
- $message .= $this->consumeTo("\n")."\n";
56
- $this->consumeNewLine();
+ if ($this->expects(' ')) {
+ $this->cursor -= strlen(' ');
+
57
+ while ($this->expects(' ')) {
58
+ $message .= $this->consumeTo("\n")."\n";
59
+ $this->consumeNewLine();
60
+ }
61
62
+ else {
63
+ $this->cursor--;
64
}
65
66
if (!$this->isFinished()) {
0 commit comments