Skip to content

Commit

Permalink
drop {{}} from regex to allow string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
gbates101 committed Oct 30, 2024
1 parent 998aa2b commit 2775a6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/image_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (

var (
TemplateRegex = regexp.MustCompile(`{{\s*(.*?)\s*}}`)
TagRegex = regexp.MustCompile(`:{{\s*(.*?)\s*}}`)
DigestRegex = regexp.MustCompile(`@{{\s*(.*?)\s*}}`)
TagOrDigestRegex = regexp.MustCompile(`[:|@]{{.*?}}`)
TagRegex = regexp.MustCompile(`:(.*)`)
DigestRegex = regexp.MustCompile(`@(.*)`)
TagOrDigestRegex = regexp.MustCompile(`[:|@].*`)
)

type ImageTemplate struct {
Expand Down

0 comments on commit 2775a6a

Please sign in to comment.