Vendor in latest containers/storage

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2023-01-15 07:41:30 -05:00
parent cdcd2eddc7
commit 5ac5aaa723
9 changed files with 43 additions and 33 deletions

View File

@@ -1,12 +1,12 @@
package report
import (
"regexp"
"github.com/containers/storage/pkg/regexp"
)
// Check for json, {{json }} and {{ json. }} which are not valid go template,
// {{json .}} is valid and thus not matched to let the template handle it like docker does.
var jsonRegex = regexp.MustCompile(`^\s*(json|{{\s*json\.?\s*}})\s*$`)
var jsonRegex = regexp.Delayed(`^\s*(json|{{\s*json\.?\s*}})\s*$`)
// JSONFormat test CLI --format string to be a JSON request
//