diff options
Diffstat (limited to 'internal/pkg/table/policy.go')
-rw-r--r-- | internal/pkg/table/policy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/table/policy.go b/internal/pkg/table/policy.go index 08636991..d2e4f5ef 100644 --- a/internal/pkg/table/policy.go +++ b/internal/pkg/table/policy.go @@ -1135,7 +1135,7 @@ func ParseExtCommunity(arg string) (bgp.ExtendedCommunityInterface, error) { return bgp.ParseExtendedCommunity(subtype, value) } -var _regexpCommunity2 = regexp.MustCompile(`(\d+.)*\d+:\d+`) +var _regexpCommunity2 = regexp.MustCompile(`^(\d+.)*\d+:\d+$`) func ParseCommunityRegexp(arg string) (*regexp.Regexp, error) { i, err := strconv.ParseUint(arg, 10, 32) |