Problem: quoted string is used for regex
Solution: use raw string instead
This commit is contained in:
parent
3c5a620d4f
commit
164e809bf6
|
@ -16,7 +16,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
entryRegex = regexp.MustCompile("^entry\\[\\d+\\]$")
|
entryRegex = regexp.MustCompile(`^entry\[\d+\]$`)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Constants used for the responses
|
// Constants used for the responses
|
||||||
|
|
Loading…
Reference in New Issue
Block a user