From 878bdc845a7b7b49baba0f6bf54e7c8d8e9b4cba Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Fri, 11 Sep 2020 12:26:34 -0400 Subject: [PATCH] Add broadness check for drive letters --- data/manifest.yaml | 12 ------------ data/missing.md | 1 + data/wiki-game-cache.yaml | 1 + src/wiki.ts | 5 +++++ 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/data/manifest.yaml b/data/manifest.yaml index e964f033..ea50880b 100644 --- a/data/manifest.yaml +++ b/data/manifest.yaml @@ -137830,18 +137830,6 @@ Lords Mobile: Lords Mobile: {} steam: id: 1041320 -Lords of Doom: - files: - 'A:': - tags: - - save - when: - - os: dos - 'B:': - tags: - - save - when: - - os: dos 'Lords of Doom: The Black God': files: /CMDDAT.LD1: diff --git a/data/missing.md b/data/missing.md index 14e00302..2d76ea31 100644 --- a/data/missing.md +++ b/data/missing.md @@ -17549,6 +17549,7 @@ * [Lord Winklebottom Investigates](https://www.pcgamingwiki.com/wiki/?curid=128747) * [Lordian: Karma](https://www.pcgamingwiki.com/wiki/?curid=94336) * [Lords Mobile](https://www.pcgamingwiki.com/wiki/?curid=136771) +* [Lords of Doom](https://www.pcgamingwiki.com/wiki/?curid=75269) * [Lords of Kingdoms](https://www.pcgamingwiki.com/wiki/?curid=91088) * [Lords of Magic](https://www.pcgamingwiki.com/wiki/?curid=36388) * [Lords of New York](https://www.pcgamingwiki.com/wiki/?curid=52956) diff --git a/data/wiki-game-cache.yaml b/data/wiki-game-cache.yaml index c47ec5cb..b176afac 100644 --- a/data/wiki-game-cache.yaml +++ b/data/wiki-game-cache.yaml @@ -64245,6 +64245,7 @@ Lords Mobile: Lords of Doom: pageId: 75269 revId: 964922 + tooBroad: true 'Lords of Doom: The Black God': pageId: 75272 revId: 964923 diff --git a/src/wiki.ts b/src/wiki.ts index e94a2dc6..d86f3bbb 100644 --- a/src/wiki.ts +++ b/src/wiki.ts @@ -326,6 +326,11 @@ export function pathIsTooBroad(path: string): boolean { return true; } + // Drive letters: + if (path.match(/^[a-zA-Z]:$/)) { + return true; + } + return false; }