mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
don't wrap string.filter pattern
This commit is contained in:
@@ -49,7 +49,7 @@ func init() {
|
|||||||
return nil, fmt.Errorf("http.request.filter pattern must be a string")
|
return nil, fmt.Errorf("http.request.filter pattern must be a string")
|
||||||
}
|
}
|
||||||
|
|
||||||
patternRegexp, err := regexp.Compile(fmt.Sprintf("^%s$", patternString))
|
patternRegexp, err := regexp.Compile(patternString)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user