summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2016-12-13 14:07:48 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-12-15 13:06:24 +0900
commit19b2a6cf519f5579aeb8af5d30e05782b92ab432 (patch)
treec5ed2985a7a734799be68c8e0f1d2f5078c0226f
parent87e1dd9ea40f4f59ad53867b3c08343368139171 (diff)
cli: fix policy formatting bug
-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 {