summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gobgp/cmd/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgp/cmd/policy.go b/gobgp/cmd/policy.go
index 8ef136d8..b094f989 100644
--- a/gobgp/cmd/policy.go
+++ b/gobgp/cmd/policy.go
@@ -58,7 +58,7 @@ func formatDefinedSet(head bool, typ string, indent int, list []table.DefinedSet
}
for i, x := range l {
if typ == "COMMUNITY" || typ == "EXT-COMMUNITY" || typ == "LARGE-COMMUNITY" {
- exp := regexp.MustCompile("\\^(\\S+)\\$")
+ exp := regexp.MustCompile("\\^\\^(\\S+)\\$\\$")
x = exp.ReplaceAllString(x, "$1")
}
if i == 0 {