Fix handling for irregular paths, P vs Path template invocation, and variadic uses of P template
This commit is contained in:
parent
1c1ed6c525
commit
9b87fb9356
5 changed files with 143 additions and 67 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue