{"size": 330, "ext": "js", "max_stars_repo_path": "src/idUtils.js", "max_stars_repo_name": "yyf1994gggg/vuex-chrome", "max_stars_repo_stars_event_min_datetime": "2019-03-29T08:33:22.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-04T03:41:13.000Z", "max_issues_repo_path": "src/idUtils.js", "max_issues_repo_name": "saveroo/vuex-chrome", "max_issues_repo_issues_event_min_datetime": "2021-03-09T01:56:55.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T02:32:49.000Z", "max_forks_repo_path": "src/idUtils.js", "max_forks_repo_name": "saveroo/vuex-chrome", "max_forks_repo_forks_event_min_datetime": "2019-09-07T16:34:17.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-25T17:25:23.000Z"}
{"max_stars_count": 13, "max_issues_count": 3, "max_forks_count": 3, "avg_line_length": 23.5714285714, "max_line_length": 69, "alphanum_fraction": 0.596969697}

export function genConnectId () {
  return `@@${Math.random().toString(36).substr(2, 9)}@@`;
}

export function checkConnectId (str) {
  return /^@@[0-9,a-z,A_Z]{9}@@[0-9,a-z,A-Z]+/.test(str);
}

export function removeConnectId (str) {
  const matches = str.match(/^@@[0-9,a-z,A-Z]{9}@@([0-9,a-z,A-Z]+)/);
  return matches[1];
}
