Skip to content

Commit e3b14bd

Browse files
committed
fix: remove unused reVariable regex to pass golangci-lint
1 parent b2c2cf1 commit e3b14bd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

pkg/parser/html/gotemplate/analyzer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ var (
2222
reWith = regexp.MustCompile(`\{\{-?\s*with\s+(\.[\w.]+)\s*-?\}\}`)
2323
reEnd = regexp.MustCompile(`\{\{-?\s*end\s*-?\}\}`)
2424
reComment = regexp.MustCompile(`\{\{/\*.*?\*/\}\}`)
25-
reVariable = regexp.MustCompile(`\{\{-?\s*(\.[\w.]+)\s*-?\}\}`)
2625
// Matches any Go template action: {{ ... }}
2726
reAction = regexp.MustCompile(`\{\{(.+?)\}\}`)
2827
// Matches dot-variables anywhere inside an action (e.g. .Body in "{{ .Body | truncate 200 }}")

0 commit comments

Comments
 (0)