Skip to content

Commit

Permalink
fix: more strict regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 29, 2021
1 parent e1cbee7 commit 36b62c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/google/uuid"
)

// Find dynamic map key names passed as Parent["foo"] notation
var bracketsRe = regexp.MustCompile(`\[([^\[\]]*)\]`)
// Find dynamic map key names passed with Parent["foo"] notation
var bracketsRe = regexp.MustCompile(`\["([^\["\]]*)"\]`)

// Normalization for supporting arbitrary dynamic keys with dots:
// Gateway.PublicGateways["gw.example.com"].UseSubdomains
Expand Down

0 comments on commit 36b62c1

Please sign in to comment.