\r is not a keychar on Windows
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user