chore: minor changes

This commit is contained in:
Fernandez Ludovic 2026-02-18 11:41:26 +01:00
commit fc460d5ccd

View file

@ -36,9 +36,13 @@ func (r RecordValue) RemoveValue(key, value string) {
return
}
r[key] = strings.ReplaceAll(r[key], strconv.Quote(value)+" ", "")
r[key] = strings.ReplaceAll(r[key], " "+strconv.Quote(value), "")
r[key] = strings.ReplaceAll(r[key], strconv.Quote(value), "")
quotedValue := strconv.Quote(value)
data := strings.ReplaceAll(r[key], " "+quotedValue, "")
data = strings.ReplaceAll(data, quotedValue+" ", "")
data = strings.ReplaceAll(data, quotedValue, "")
r[key] = data
if r[key] == "" {
r.Delete(key)