{"size": 276, "ext": "js", "max_stars_repo_path": "js/dom-diff.js", "max_stars_repo_name": "zazaliu/service_worker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/dom-diff.js", "max_issues_repo_name": "zazaliu/service_worker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/dom-diff.js", "max_forks_repo_name": "zazaliu/service_worker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.6666666667, "max_line_length": 55, "alphanum_fraction": 0.7101449275}
// TODO 本地缓存与网络资源对比差异更新
export function dynamicUpdate(newHtmlStr) {
  const bodyMatchReg = /\<body(.|\s)*?\<\/body\>/;
  const targetElement = newHtmlStr.match(bodyMatchReg);
  if (targetElement && targetElement.length) {
    document.body.outerHTML = targetElement[0];
  }
}
