Skip to content

Commit

Permalink
feat: always quote tilde
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Jun 18, 2024
1 parent 5f846f9 commit 1875583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1875583

Please sign in to comment.