\r is not a keychar on Windows

This commit is contained in:
half-ogre
2014-02-20 14:51:43 -08:00
parent 0773148832
commit 1c0f7f552c
+1 -1
View File
@@ -70,7 +70,7 @@ func isAlphanumeric(r rune) bool {
func isKeyChar(r rune) bool { func isKeyChar(r rune) bool {
// "Keys start with the first non-whitespace character and end with the last // "Keys start with the first non-whitespace character and end with the last
// non-whitespace character before the equals sign." // 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 { func isDigit(r rune) bool {