Expand cases that --irregularPathUntagged will check

This commit is contained in:
mtkennerly 2020-07-16 17:10:57 -04:00
parent 869647cc97
commit 55e02552bb
4 changed files with 12 additions and 4 deletions

View file

@ -85,7 +85,14 @@ export class ManifestFile extends YamlFile<Manifest> {
if (filter.irregularPath && wikiCache[title].irregularPath) {
check = true;
}
if (filter.irregularPathUntagged && !wikiCache[title].irregularPath && Object.keys(this.data[title]?.files ?? []).some(x => x.includes("{{") || x.includes("</") || x.includes("<br>") || x.includes("<br/>"))) {
if (
filter.irregularPathUntagged &&
!wikiCache[title].irregularPath &&
(
Object.keys(this.data[title]?.files ?? []).some(x => x.includes("{{") || x.includes("</") || x.includes("/>") || x.includes("<br>")) ||
Object.keys(this.data[title]?.registry ?? []).some(x => x.includes("{{") || x.includes("</") || x.includes("/>") || x.includes("<br>"))
)
) {
check = true;
}
if (filter.games && filter.games.includes(title)) {