mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
Trim spaces from tags
This commit is contained in:
parent
e70ec53983
commit
865b9cd545
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ func go_map_put_str(id C.ulong, key *C.char, val *C.char) {
|
||||||
lock.RLock()
|
lock.RLock()
|
||||||
defer lock.RUnlock()
|
defer lock.RUnlock()
|
||||||
m := maps[uint32(id)]
|
m := maps[uint32(id)]
|
||||||
k := strings.ToLower(C.GoString(key))
|
k := strings.ToLower(strings.TrimSpace(C.GoString(key)))
|
||||||
if _, ok := m[k]; !ok {
|
if _, ok := m[k]; !ok {
|
||||||
v := C.GoString(val)
|
v := C.GoString(val)
|
||||||
m[k] = v
|
m[k] = v
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue