{"size": 404, "ext": "js", "max_stars_repo_path": "src/renderer/dateFormats.js", "max_stars_repo_name": "shenyunshe/data-curator", "max_stars_repo_stars_event_min_datetime": "2017-07-15T12:22:05.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-28T01:08:58.000Z", "max_issues_repo_path": "src/renderer/dateFormats.js", "max_issues_repo_name": "shenyunshe/data-curator", "max_issues_repo_issues_event_min_datetime": "2017-07-15T12:31:16.000Z", "max_issues_repo_issues_event_max_datetime": "2020-05-25T21:36:45.000Z", "max_forks_repo_path": "src/renderer/dateFormats.js", "max_forks_repo_name": "shenyunshe/data-curator", "max_forks_repo_forks_event_min_datetime": "2017-07-28T09:41:07.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-06T15:56:25.000Z"}
{"max_stars_count": 174, "max_issues_count": 889, "max_forks_count": 32, "avg_line_length": 19.2380952381, "max_line_length": 75, "alphanum_fraction": 0.6237623762}
const supportedFormats = {
  '%d/%m/%y': 'date',
  '%d/%m/%Y': 'date',
  '%H:%M': 'time'
}

export function isValidPatternForType (pattern, type) {
  let matchFound = false
  for (const [nextPattern, nextType] of Object.entries(supportedFormats)) {
    if (pattern === nextPattern && type === nextType) {
      matchFound = true
      break
    }
  }
  return matchFound
}

export {
  supportedFormats
}
