Fix handling for irregular paths, P vs Path template invocation, and variadic uses of P template

This commit is contained in:
mtkennerly 2020-07-15 21:21:57 -04:00
parent 1c1ed6c525
commit 9b87fb9356
5 changed files with 143 additions and 67 deletions

View file

@ -51,6 +51,7 @@ export class ManifestFile extends YamlFile<Manifest> {
unchecked: boolean,
unsupportedOs: boolean,
unsupportedPath: boolean,
irregularPath: boolean,
tooBroad: boolean,
tooBroadUntagged: boolean,
game: string | undefined,
@ -80,6 +81,9 @@ export class ManifestFile extends YamlFile<Manifest> {
if (filter.unsupportedPath && info.unsupportedPath) {
check = true;
}
if (filter.irregularPath && (wikiCache[title].irregularPath || Object.keys(this.data[title]?.files ?? []).some(x => x.includes("{{") || x.includes("</") || x.includes("<br>") || x.includes("<br/>")))) {
check = true;
}
if (filter.game === title) {
check = true;
}