Skip to content

Commit

Permalink
fix: 快照中域名相识站点重复
Browse files Browse the repository at this point in the history
closed: #1074
  • Loading branch information
Rhilip committed Jun 27, 2022
1 parent 33cd812 commit ac96c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/public.ts
Expand Up @@ -372,8 +372,8 @@ class HelpFunctions {
}

let site = sites.find((item: Site) => {
let cdn = [item.url].concat(item.cdn, item.formerHosts);
return item.host == host || cdn.join("").indexOf(host) > -1;
let cdn = [item.url].concat(item.cdn, item.formerHosts?.map(x => `//${x}`));
return item.host == host || cdn.join("").indexOf(`//${host}`) > -1;
});

if (site) {
Expand Down

0 comments on commit ac96c44

Please sign in to comment.