mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
chore: minor changes
This commit is contained in:
parent
bf723da85e
commit
fc460d5ccd
1 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue