Merge pull request #16 from half-ogre/15-fix-parser-on-windows
Fix parser on Windows
This commit is contained in:
@@ -70,7 +70,7 @@ func isAlphanumeric(r rune) bool {
|
||||
func isKeyChar(r rune) bool {
|
||||
// "Keys start with the first non-whitespace character and end with the last
|
||||
// non-whitespace character before the equals sign."
|
||||
return !(isSpace(r) || r == '\n' || r == eof || r == '=')
|
||||
return !(isSpace(r) || r == '\r' || r == '\n' || r == eof || r == '=')
|
||||
}
|
||||
|
||||
func isDigit(r rune) bool {
|
||||
|
||||
Reference in New Issue
Block a user