Problem: quoted string is used for regex

Solution: use raw string instead
This commit is contained in:
Peter Stuifzand 2021-11-20 21:08:54 +01:00
parent 3c5a620d4f
commit 164e809bf6
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -16,7 +16,7 @@ import (
)
var (
entryRegex = regexp.MustCompile("^entry\\[\\d+\\]$")
entryRegex = regexp.MustCompile(`^entry\[\d+\]$`)
)
// Constants used for the responses