summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-06 11:21:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-06 11:21:38 +0900
commit69f866a77cb83db8925fb95fb55d6086fbfe899c (patch)
treeccab74cc11b14639734bda30c794271461e7bb33 /api
parent9ae30060eb399b825f035160d5b77df74789ffb6 (diff)
Fixing all megacheck errors.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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) {