summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/policy.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/policy.go b/api/policy.go
index 102e2e02..01d55473 100644
--- a/api/policy.go
+++ b/api/policy.go
@@ -25,9 +25,9 @@ import (
)
var (
- repexpCommunity = regexp.MustCompile("(\\d+.)*\\d+:\\d+")
- regexpLargeCommunity = regexp.MustCompile("\\d+:\\d+:\\d+")
- regexpCommunityString = regexp.MustCompile("[\\^\\$]")
+ repexpCommunity = regexp.MustCompile(`(\d+.)*\d+:\d+`)
+ regexpLargeCommunity = regexp.MustCompile(`\d+:\d+:\d+`)
+ regexpCommunityString = regexp.MustCompile(`[\^\$]`)
)
func ParseCommunityRegexp(arg string) (*regexp.Regexp, error) {