Skip to content

Commit

Permalink
Fix small typo in sniffJson regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dee0sap committed Jun 4, 2024
1 parent d39bbba commit c5d2c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/subst/subst.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (f *fileinfo) Content() ([]byte, error) {
}
}

var sniffJson = regexp.MustCompile(`\s*(\{|\[|")`)
var sniffJson = regexp.MustCompile(`^\s*(\{|\[|")`)

func (f *fileinfo) SubstituteByData(path string, value []byte) error {
var err error
Expand Down

0 comments on commit c5d2c23

Please sign in to comment.