diff --git a/parser/parser.go b/parser/parser.go index 20bd24f..8e0e5bd 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -15,7 +15,6 @@ import ( "io/ioutil" "os" "path/filepath" - "regexp" "strconv" "strings" ) @@ -77,11 +76,6 @@ func (f *ConfigurationFile) UnmarshalJSON(data []byte) error { return nil } -// Regex to match paths such as foo[1].bar[2] and convert them into a format that -// gabs can work with, such as foo.1.bar.2 in this case. This is applied when creating -// the struct for the configuration file replacements. -var cfrMatchReplacement = regexp.MustCompile(`\[(\d+)]`) - // Defines a single find/replace instance for a given server configuration file. type ConfigurationFileReplacement struct { Match string `json:"match"`