From 3bba2c99c61639a0c159565707dc3497ba5228ce Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 15 May 2013 19:43:10 +0200 Subject: [PATCH] Kill the use of strings.ToUpper This creates garbage and does not really help the parsing. --- zscan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zscan.go b/zscan.go index 2beade82..6a6bdbc4 100644 --- a/zscan.go +++ b/zscan.go @@ -545,7 +545,7 @@ func zlexer(s *scan, c chan lex) { l.token = string(str[:stri]) if !rrtype { - if t, ok := StringToType[strings.ToUpper(l.token)]; ok { + if t, ok := StringToType[l.token]; ok { l.value = _RRTYPE l.torc = t rrtype = true @@ -563,7 +563,7 @@ func zlexer(s *scan, c chan lex) { } } } - if t, ok := StringToClass[strings.ToUpper(l.token)]; ok { + if t, ok := StringToClass[l.token]; ok { l.value = _CLASS l.torc = t } else {