From 704545a2ec67e7520e62172e267cea349fafc953 Mon Sep 17 00:00:00 2001 From: kkocdko <31189892+kkocdko@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:42:12 +0800 Subject: [PATCH] Fix rule description header of `domain_suffix` I read other rule_item_xxx.go files, they are all snake case. This description is showed on dashboard like yacd. Signed-off-by: kkocdko <31189892+kkocdko@users.noreply.github.com> --- route/rule_item_domain.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/route/rule_item_domain.go b/route/rule_item_domain.go index d2a11181..36839a55 100644 --- a/route/rule_item_domain.go +++ b/route/rule_item_domain.go @@ -30,11 +30,11 @@ func NewDomainItem(domains []string, domainSuffixes []string) *DomainItem { description += " " } if dsLen == 1 { - description += "domainSuffix=" + domainSuffixes[0] + description += "domain_suffix=" + domainSuffixes[0] } else if dsLen > 3 { - description += "domainSuffix=[" + strings.Join(domainSuffixes[:3], " ") + "...]" + description += "domain_suffix=[" + strings.Join(domainSuffixes[:3], " ") + "...]" } else { - description += "domainSuffix=[" + strings.Join(domainSuffixes, " ") + "]" + description += "domain_suffix=[" + strings.Join(domainSuffixes, " ") + "]" } } return &DomainItem{