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

@ -28,7 +28,7 @@ There are some lower-level commands for finer control or full imports:
* Games that had an unusable path: `npm run manifest -- --unsupportedPath` * Games that had an unusable path: `npm run manifest -- --unsupportedPath`
* Games with paths that are too broad and are tagged as such in the wiki cache: `npm run manifest -- --tooBroad` * Games with paths that are too broad and are tagged as such in the wiki cache: `npm run manifest -- --tooBroad`
* Games with paths that are too broad and aren't already tagged as such in the wiki cache: `npm run manifest -- --tooBroadUntagged` * Games with paths that are too broad and aren't already tagged as such in the wiki cache: `npm run manifest -- --tooBroadUntagged`
* Games with paths that look invalid are tagged as such in the wiki cache: `npm run manifest -- --irregularPath` * Games with paths that look invalid and are tagged as such in the wiki cache: `npm run manifest -- --irregularPath`
* Games with paths that look invalid and aren't already tagged as such in the wiki cache: `npm run manifest -- --irregularPathUntagged` * Games with paths that look invalid and aren't already tagged as such in the wiki cache: `npm run manifest -- --irregularPathUntagged`
* A specific game: `npm run manifest -- "Game 1" "Game 2"` * A specific game: `npm run manifest -- "Game 1" "Game 2"`

View file

@ -189558,7 +189558,7 @@ Ruzh Delta Z:
HKEY_CURRENT_USER/SOFTWARE/Pribumi/RUZH DELTA Z: HKEY_CURRENT_USER/SOFTWARE/Pribumi/RUZH DELTA Z:
tags: tags:
- config - config
'HKEY_CURRENT_USER/SOFTWARE/Pribumi/RUZH DELTA Z/HighScore{{code|*}}': HKEY_CURRENT_USER/SOFTWARE/Pribumi/RUZH DELTA Z/HighScore*:
tags: tags:
- save - save
steam: steam:

View file

@ -1653,6 +1653,7 @@ A Rite from the Stars:
pageId: 103285 pageId: 103285
revId: 841573 revId: 841573
A Robot Named Fight!: A Robot Named Fight!:
irregularPath: true
pageId: 66273 pageId: 66273
revId: 934101 revId: 934101
A Roll-Back Story: A Roll-Back Story:
@ -21838,7 +21839,6 @@ Coin Commander:
pageId: 156234 pageId: 156234
revId: 931401 revId: 931401
Coin Crypt: Coin Crypt:
irregularPath: true
pageId: 26839 pageId: 26839
revId: 982667 revId: 982667
Coin Pickers: Coin Pickers:
@ -92302,6 +92302,7 @@ Ruzar - The Life Stone:
pageId: 45427 pageId: 45427
revId: 868025 revId: 868025
Ruzh Delta Z: Ruzh Delta Z:
irregularPath: true
pageId: 47954 pageId: 47954
revId: 868026 revId: 868026
Ryan Black: Ryan Black:

View file

@ -85,7 +85,14 @@ export class ManifestFile extends YamlFile<Manifest> {
if (filter.irregularPath && wikiCache[title].irregularPath) { if (filter.irregularPath && wikiCache[title].irregularPath) {
check = true; 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; check = true;
} }
if (filter.games && filter.games.includes(title)) { if (filter.games && filter.games.includes(title)) {