Skip to content

Commit

Permalink
Better regex for simpler backends
Browse files Browse the repository at this point in the history
  • Loading branch information
auduny committed Oct 9, 2024
1 parent 8a96b63 commit de383f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion varnishprom.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func main() {
// VBE.boot.udo.vg_foobar_udo.(sa4:10.2.3.4:3005).happy
gotoRe := regexp.MustCompile(`^.*\.goto\..*?\(([\d\.]+).*?\(([^\)]+).*\)\.(\w+)`)
udoRe := regexp.MustCompile(`^.*\.udo\.(.*?)\.\(sa[46]:(\d+\.\d+\.\d+\.\d+:\d+)\)\.(\w+)`)
backendRe := regexp.MustCompile(`^\w+\.\w+\.(\w+)\.(\w+)`)
backendRe := regexp.MustCompile(`(\w+)\.(\w+)$`)
directorRe := regexp.MustCompile(`[-_\d]+$`)

collapse := regexp.MustCompile(*collapse)
Expand Down

0 comments on commit de383f5

Please sign in to comment.