1 parent 95f52f6 commit b31ecaeCopy full SHA for b31ecae
1 file changed
parse.go
@@ -70,7 +70,6 @@ func parse(content string) (*SecurityTxt, error) {
70
}
71
72
case "Expires":
73
- // Must be uppercase for 'z' -> 'Z' (RFC3339).
74
t, err := time.Parse(time.RFC3339, strings.ToUpper(value))
75
if err == nil {
76
data.Expires = &t
@@ -114,3 +113,7 @@ func parse(content string) (*SecurityTxt, error) {
114
113
115
return data, nil
116
+
117
+func (s *SecurityTxt) Valid() bool {
118
+ return len(s.Errors) == 0
119
+}
0 commit comments