From 1875583399be45be517d14a7caf010a17311fdc1 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 18 Jun 2024 12:35:44 +0200 Subject: [PATCH] feat: always quote tilde --- token/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/token.go b/token/token.go index c86caab2..e3d439ad 100644 --- a/token/token.go +++ b/token/token.go @@ -612,7 +612,7 @@ func looksLikeTimeValue(value string) bool { // IsNeedQuoted whether need quote for passed string or not func IsNeedQuoted(value string) bool { - if value == "" { + if value == "" || value == "~" { return true } if _, exists := reservedEncKeywordMap[value]; exists {