Skip to content

Commit

Permalink
Fixed another key detection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Dec 10, 2016
1 parent 8422dfd commit aabad31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Document+ParsingSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ extension Document {
let keyPos = position - keyPositionOffset

if character == 0 {
if keyBytes.count != keyPos {
isKey = false
}

didEnd = true
break keyComparison // end of key data
} else if isKey && keyBytes.count > keyPos {
Expand Down

0 comments on commit aabad31

Please sign in to comment.