From 902c6974c8b904176d78813e6bd87ef3f8710947 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Sat, 6 Mar 2021 18:56:15 -0800 Subject: [PATCH] added "UNSET" and "UNDEF" (WW3 compat) to node object sets --- internal/pkg/node/methods.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 1fcbd7a7..6f49c692 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -1,9 +1,5 @@ package node -import ( - "strings" -) - /********** * * Sets @@ -15,7 +11,7 @@ func (self *Entry) Set(val string) { return } - if strings.ToUpper(val) == "DELETE" { + if val == "UNDEF" || val == "DELETE" || val == "UNSET" { self.value = "" } else { self.value = val