diff options
author | Tatsushi Demachi <tdemachi@gmail.com> | 2019-09-23 01:22:10 +0900 |
---|---|---|
committer | Tatsushi Demachi <tdemachi@gmail.com> | 2019-09-23 01:22:41 +0900 |
commit | e193217b425672b758ab587573dd924d2b9d70d9 (patch) | |
tree | 3ac750d49190684260fc9719617b351875038e53 | |
parent | 5a4833234de4ca98ccaa9955f2a2688fb6ad9f56 (diff) |
table: fix SingleAsPathMatch pre compiled pattern
-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 24eda345..95460fca 100644 --- a/internal/pkg/table/policy.go +++ b/internal/pkg/table/policy.go @@ -825,7 +825,7 @@ func (m *singleAsPathMatch) Match(aspath []uint32) bool { } var ( - _regexpLeftMostRe = regexp.MustCompile(`$\^([0-9]+)_^`) + _regexpLeftMostRe = regexp.MustCompile(`^\^([0-9]+)_$`) _regexpOriginRe = regexp.MustCompile(`^_([0-9]+)\$$`) _regexpIncludeRe = regexp.MustCompile("^_([0-9]+)_$") _regexpOnlyRe = regexp.MustCompile(`^\^([0-9]+)\$$`) |