From 164e809bf602775d554cb088471c8995ee587bb5 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 20 Nov 2021 21:08:54 +0100 Subject: [PATCH] Problem: quoted string is used for regex Solution: use raw string instead --- pkg/server/microsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/microsub.go b/pkg/server/microsub.go index d286b97..e16d50f 100644 --- a/pkg/server/microsub.go +++ b/pkg/server/microsub.go @@ -16,7 +16,7 @@ import ( ) var ( - entryRegex = regexp.MustCompile("^entry\\[\\d+\\]$") + entryRegex = regexp.MustCompile(`^entry\[\d+\]$`) ) // Constants used for the responses