Trim spaces from tags

This commit is contained in:
Deluan 2020-09-07 15:58:00 -04:00 committed by Deluan Quintão
parent e70ec53983
commit 865b9cd545
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func go_map_put_str(id C.ulong, key *C.char, val *C.char) {
lock.RLock()
defer lock.RUnlock()
m := maps[uint32(id)]
k := strings.ToLower(C.GoString(key))
k := strings.ToLower(strings.TrimSpace(C.GoString(key)))
if _, ok := m[k]; !ok {
v := C.GoString(val)
m[k] = v