summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--internal/pkg/table/policy.go2
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]+)\$$`)