aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/vektah/gqlparser/lexer/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/vektah/gqlparser/lexer/lexer.go')
-rw-r--r--vendor/github.com/vektah/gqlparser/lexer/lexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/vektah/gqlparser/lexer/lexer.go b/vendor/github.com/vektah/gqlparser/lexer/lexer.go
index 3aaa7102..89687857 100644
--- a/vendor/github.com/vektah/gqlparser/lexer/lexer.go
+++ b/vendor/github.com/vektah/gqlparser/lexer/lexer.go
@@ -448,7 +448,7 @@ func (s *Lexer) readBlockString() (Token, *gqlerror.Error) {
s.end += 4
s.endRunes += 4
} else if r == '\r' {
- if s.end+1 <= inputLen && s.Input[s.end+1] == '\n' {
+ if s.end+1 < inputLen && s.Input[s.end+1] == '\n' {
s.end++
s.endRunes++
}