Skip to content

Commit

Permalink
Fix JSON-dir regex pattern #265
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe committed Nov 17, 2016
1 parent 171d6d6 commit 8f9fb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (w JSONWriter) Write(scanResults []models.ScanResult) (err error) {
}

// JSONDirPattern is file name pattern of JSON directory
var JSONDirPattern = regexp.MustCompile(`^\d{8}_\d{4}$`)
var JSONDirPattern = regexp.MustCompile(`^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}$`)

// GetValidJSONDirs return valid json directory as array
func GetValidJSONDirs() (jsonDirs JSONDirs, err error) {
Expand Down

0 comments on commit 8f9fb5c

Please sign in to comment.