From cf8244580df54fe6acef9d2e011693dde165db42 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Fri, 22 Jul 2022 07:33:17 +0800 Subject: [PATCH] #7: Parse HTML-like tags in paths --- data/manifest.yaml | 335 +++++++++++++++++++++++++++++++++++++++++---- data/missing.md | 16 --- src/wiki.ts | 15 ++ 3 files changed, 320 insertions(+), 46 deletions(-) diff --git a/data/manifest.yaml b/data/manifest.yaml index c5982f5a..8f05f13f 100644 --- a/data/manifest.yaml +++ b/data/manifest.yaml @@ -16633,6 +16633,13 @@ Age of Empires III: id: 105450 'Age of Empires III: Definitive Edition': files: + /Games/Age of Empires 3 DE/*/Savegame: + tags: + - save + when: + - os: windows + - os: windows + store: microsoft /Games/Age of Empires 3 DE/Common: tags: - config @@ -44047,6 +44054,27 @@ Back to the Egg!: steam: id: 705640 'Back to the Future: The Game': + files: + /Library/Application Support/Telltale Games/*/*save: + tags: + - save + when: + - os: mac + /Library/Application Support/Telltale Games/*/prefs.prop: + tags: + - config + when: + - os: mac + /Telltale Games/*/*.sav: + tags: + - save + when: + - os: windows + /Telltale Games/*/prefs.prop: + tags: + - config + when: + - os: windows installDir: Back to the Future Ep 1: {} launch: @@ -44732,6 +44760,11 @@ Bad North: when: - os: windows store: microsoft + Steam/userdata/*/688420/remote: + tags: + - save + when: + - store: steam installDir: BadNorth: {} launch: @@ -51171,6 +51204,12 @@ Beam: steam: id: 1067430 BeamNG.drive: + files: + /BeamNG.drive/*/settings: + tags: + - config + when: + - os: windows installDir: BeamNG.drive: {} launch: @@ -56349,6 +56388,11 @@ BioShock Remastered: - save when: - os: windows + /My Games/Bioshock Epic HD/Bioshock/*/SaveGames: + tags: + - save + when: + - os: windows installDir: BioShock Remastered: {} launch: @@ -83123,6 +83167,16 @@ Cattle and Crops: - config when: - os: linux + /.cattle-and-crops/Profiles/*/Save: + tags: + - save + when: + - os: linux + /documents/My Games/Cattle and Crops/Profiles/*/Save: + tags: + - save + when: + - os: windows /My Games/Cattle and Crops/Engine: tags: - config @@ -125077,16 +125131,16 @@ Death's Gambit: id: 356650 Death's Hangover: files: - /data/save//DHMEM.cfg: - tags: - - config - when: - - os: windows /data/save/DH.sav: tags: - save when: - os: windows + /data/save/DHMEM.cfg: + tags: + - config + when: + - os: windows /data/save/DH_KEYS.cfg: tags: - config @@ -148419,6 +148473,12 @@ Duck Force: steam: id: 511690 Duck Game: + files: + /DuckGame/*/Options: + tags: + - config + when: + - os: windows installDir: Duck Game: {} launch: @@ -172273,6 +172333,17 @@ Faceless: steam: id: 558340 Faces of War: + files: + /My Games/faces of war/profiles/*/options: + tags: + - config + when: + - os: windows + /My Games/faces of war/profiles/*/save: + tags: + - save + when: + - os: windows installDir: Faces of War: {} launch: @@ -173890,6 +173961,12 @@ Fallen Hearts: steam: id: 1032450 'Fallen Hero: Rebirth': + files: + Steam/userdata/*/800620/remote/storePSfallenherorebirthPSstate: + tags: + - save + when: + - os: windows installDir: Fallen Hero Rebirth: {} launch: @@ -180416,7 +180493,7 @@ Final Fantasy IX: - save when: - os: windows - /Packages//39EA002F.FINALFANTASYIX_n746a19ndrrjg/SystemAppData/wgs: + /Packages/39EA002F.FINALFANTASYIX_n746a19ndrrjg/SystemAppData/wgs: tags: - save when: @@ -182602,6 +182679,17 @@ Fisk: steam: id: 744240 Fission Superstar X: + files: + 'C:/Users/*/Saved Games/FISSIONX/Jesus.sav': + tags: + - save + when: + - os: windows + 'C:/Users/*/Saved Games/FISSIONX/settings.ini': + tags: + - config + when: + - os: windows installDir: Fission Superstar X: {} launch: @@ -192190,6 +192278,11 @@ From Dust: - save when: - os: windows + 'C:/Users/*/Documents/Dust/profiles': + tags: + - config + when: + - os: windows installDir: From Dust: {} launch: @@ -199807,7 +199900,7 @@ Geeste: - save when: - os: windows - /AppData/LocalLow//NapsTeam/Gekido/Unity/d0ab1b3a-1f49-425f-9ad7-a9a9595a3dc4/Analytics: + /AppData/LocalLow/NapsTeam/Gekido/Unity/d0ab1b3a-1f49-425f-9ad7-a9a9595a3dc4/Analytics: tags: - config when: @@ -218485,6 +218578,12 @@ Halo Beats!: id: 1224900 Halo Infinite: files: + /userdata/*/1240440/remote: + tags: + - save + when: + - os: windows + store: steam /HaloInfinite/Settings/SpecControlSettings.json: tags: - config @@ -266292,7 +266391,7 @@ Knuckle Sandwich: id: 1012570 Knytt Stories: files: - //Saves: + /Saves: tags: - save when: @@ -273295,7 +273394,7 @@ LeftWay: id: 389850 'Legacy of Kain: Blood Omen 2': files: - /Blood Omen 2//1.00.000: + /Blood Omen 2/1.00.000: tags: - save when: @@ -275818,6 +275917,11 @@ Leisure Suit Larry's Casino (1998): - config when: - os: windows + /data/lsl7.*: + tags: + - save + when: + - store: gog /Sierra/Leisure Suit Larry 7: tags: - save @@ -299651,6 +299755,12 @@ MechWarrior 3: - config when: - os: windows + /Packages/PiranhaGamesInc.MechWarrior5Mercenaries_/*/LocalCache/Local/MW5Mercs/Saved: + tags: + - save + when: + - os: windows + store: microsoft installDir: MechWarrior 5 Mercenaries: {} launch: @@ -312775,6 +312885,16 @@ Monster Sanctuary: id: 814370 Monster Slayers: files: + /Users/*/Library/Application Support/com.yoyogames.macyoyorunner: + tags: + - save + when: + - os: mac + /Users/*/Library/Application Support/com.yoyogames.macyoyorunner/settings.ini: + tags: + - config + when: + - os: mac /Monster_Slayers_DB: tags: - save @@ -332903,6 +333023,17 @@ Ninja Turdle: steam: id: 1082460 Ninja Tycoon: + files: + /home/*/.config/unity3d/Endless Loop Studios/Ninja Tycoon: + tags: + - config + when: + - os: linux + /home/*/.steam/steamapps/common/Ninja Tycoon/NinjaTycoon_Data/Saves: + tags: + - save + when: + - os: linux installDir: Ninja Tycoon: {} launch: @@ -334572,16 +334703,12 @@ Nona: id: 713370 Nongünz: files: - //Nongunz/Slot.save: - tags: - - save - when: - - os: linux /Nongunz/Slot.save: tags: - save when: - os: windows + - os: linux /nongunz: tags: - config @@ -347299,16 +347426,16 @@ Outcast 2 - A New Beginning: id: 1013140 'Outcast: Second Contact': files: - //outcast_Data/StreamingAssets/userdata/savegames: - tags: - - save - when: - - os: windows /outcast_Data/StreamingAssets/userdata/config.ini: tags: - config when: - os: windows + /outcast_Data/StreamingAssets/userdata/savegames: + tags: + - save + when: + - os: windows installDir: Outcast - Second Contact: {} steam: @@ -362930,6 +363057,12 @@ Planet 2117: steam: id: 658750 Planet Alcatraz: + files: + /Planet Alcatraz/Save*//Planet Alcatraz/Autosave: + tags: + - save + when: + - os: windows installDir: PlanetAlcatraz: {} launch: @@ -387672,7 +387805,7 @@ RealmCraft: - os: linux store: steam registry: - HKEY_CURRENT_USER//Software/Crafty Studios GmbH/Nordlandtrilogie HD Schicksalsklinge Gold: + HKEY_CURRENT_USER/Software/Crafty Studios GmbH/Nordlandtrilogie HD Schicksalsklinge Gold: tags: - config steam: @@ -394003,6 +394136,12 @@ Retro/Grade: id: 222660 RetroArch: files: + /configs/*/*.opt|/configs/*/*.cfg: + tags: + - config + when: + - os: windows + - os: mac /retroarch-core-options.cfg: tags: - config @@ -411464,6 +411603,17 @@ Sam & Max Hit the Road: steam: id: 355170 Sam & Max Save the World: + files: + /*/*.save|/Telltale Games/*/*.save: + tags: + - save + when: + - os: windows + /*/prefs.prop|/Telltale Games/*/prefs.prop: + tags: + - config + when: + - os: windows steam: id: 901660 Sam & Max Save the World (2020): @@ -411484,6 +411634,17 @@ Sam & Max Save the World (2020): steam: id: 1440440 'Sam & Max: Beyond Time and Space': + files: + /*/*.save: + tags: + - save + when: + - os: windows + /*/prefs.prop: + tags: + - config + when: + - os: windows steam: id: 901663 'Sam & Max: Beyond Time and Space (2021)': @@ -414513,16 +414674,16 @@ School Bus Fun: id: 301990 School Girl/Zombie Hunter: files: - /sgzh/Saved//SaveGames: - tags: - - save - when: - - os: windows /sgzh/Saved/Config/WindowsNoEditor: tags: - config when: - os: windows + /sgzh/Saved/SaveGames: + tags: + - save + when: + - os: windows installDir: SGZH School Girl Zombie Hunter: {} launch: @@ -422077,6 +422238,12 @@ Shadows of time: steam: id: 256030 'Shadows: Price for Our Sins': + files: + 'C:/Users/*/AppData/Roaming/8floor/Shadowsv1.28': + tags: + - save + when: + - os: windows installDir: Shadows Price For Our Sins: {} launch: @@ -428100,6 +428267,18 @@ Silent Gentleman: - store: steam steam: id: 636360 +'Silent Heroes: Elite Troops of WWII': + files: + /profiles/*/save: + tags: + - save + when: + - os: windows + /profiles/*/settings: + tags: + - config + when: + - os: windows 'Silent Hill 2: Director''s Cut': files: /data/save/Folder 01: @@ -431261,6 +431440,13 @@ Sky Flight: steam: id: 960370 Sky Force Anniversary: + files: + SteamInstallFolder/UserData/*/355050/remote/CloudData.dat: + tags: + - config + - save + when: + - os: windows installDir: Sky Force Anniversary: {} launch: @@ -438356,6 +438542,17 @@ Soldiers of the Universe: steam: id: 640050 'Soldiers: Heroes of World War II': + files: + /profiles/*/save: + tags: + - save + when: + - os: windows + /profiles/*/settings: + tags: + - config + when: + - os: windows installDir: Soldiers Heroes of World War 2: {} launch: @@ -447858,10 +448055,6 @@ Spin Rhythm XD: /Users/USER/Library/Application Support/Super Spin Digital/Spin Rhythm XD: tags: - config - when: - - os: mac - /Users/USER/Library/Application Support/Super Spin Digital/Spin Rhythm XD/: - tags: - save when: - os: mac @@ -455695,6 +455888,11 @@ State of Mind: when: - os: windows store: microsoft + /Daedalic Entertainment GmbH/StateOfMind/Saved/*/SaveGames: + tags: + - save + when: + - os: linux /Daedalic Entertainment GmbH/StateOfMind/Saved/Config/LinuxNoEditor: tags: - config @@ -462443,6 +462641,11 @@ Sub Chase Online: id: 1077360 Sub Command: files: + /*: + tags: + - save + when: + - os: windows /scenario/*.mcs: tags: - save @@ -482514,6 +482717,16 @@ Tesla Breaks the World!: id: 314210 'Tesla Effect: A Tex Murphy Adventure': files: + '/Library/Application/ Support/[I/]/*/[/I/]/BigFinishGames/TeslaEffect': + tags: + - save + when: + - os: mac + '/Library/Application/ Support/[I/]/*/[/I/]/BigFinishGames/TeslaEffect/SettingsDB.sav': + tags: + - config + when: + - os: mac /BigFinishGames/TeslaEffect//*.sav: tags: - save @@ -485915,6 +486128,22 @@ The Battle for Sector 219: steam: id: 455200 The Battle for Wesnoth: + files: + /Library/Application Support/Wesnoth_*: + tags: + - save + when: + - os: mac + /Wesnoth_*: + tags: + - save + when: + - os: windows + /wesnoth/*: + tags: + - save + when: + - os: linux installDir: wesnoth: {} launch: @@ -493573,6 +493802,11 @@ The Floor is Jelly: - save when: - os: windows + /jelly/Local Store/*: + tags: + - save + when: + - os: windows installDir: TheFloorIsJelly: {} launch: @@ -525127,7 +525361,7 @@ Total Tank Simulator: id: 779340 'Total War: Warhammer': files: - /The Creative Assembly/Warhammer/EOS//Save Games: + /The Creative Assembly/Warhammer/EOS/Save Games: tags: - save when: @@ -560196,6 +560430,11 @@ West of Loathing: - save when: - os: mac + /Library/Application Support/Asymmetric Software/West of Loathing/permaflags-*: + tags: + - config + when: + - os: mac installDir: West of Loathing: {} launch: @@ -572438,6 +572677,12 @@ Yakuza 3 Remastered: - config when: - os: windows + /Packages/SEGAofAmericaInc.Yakuza3PC_*/SystemAppData/wgs: + tags: + - save + when: + - os: windows + store: microsoft installDir: Yakuza 3: {} steam: @@ -572454,6 +572699,12 @@ Yakuza 4 Remastered: - config when: - os: windows + /Packages/SEGAofAmericaInc.Yakuza4PC_*/SystemAppData/wgs: + tags: + - save + when: + - os: windows + store: microsoft installDir: Yakuza 4: {} launch: @@ -580490,6 +580741,30 @@ Zzzzz: store: steam steam: id: 925640 +'В тылу врага: Диверсанты 2': + files: + /profiles/*/save: + tags: + - save + when: + - os: windows + /profiles/*/settings: + tags: + - config + when: + - os: windows +'В тылу врага: Диверсанты 3': + files: + /profiles/*/save: + tags: + - save + when: + - os: windows + /profiles/*/settings: + tags: + - config + when: + - os: windows ВЗЛОМ ЖОПЫ: installDir: VZLOM JOPI: {} diff --git a/data/missing.md b/data/missing.md index 5a2dba72..60b9bf0c 100644 --- a/data/missing.md +++ b/data/missing.md @@ -2691,7 +2691,6 @@ * [Back to Life 2](https://www.pcgamingwiki.com/wiki/?curid=50312) * [Back to Life 3](https://www.pcgamingwiki.com/wiki/?curid=49109) * [Back to the Egg!](https://www.pcgamingwiki.com/wiki/?curid=69591) -* [Back to the Future: The Game](https://www.pcgamingwiki.com/wiki/?curid=7384) * [Backfire](https://www.pcgamingwiki.com/wiki/?curid=62483) * [Backgammon](https://www.pcgamingwiki.com/wiki/?curid=68382) * [Backgammon Blitz](https://www.pcgamingwiki.com/wiki/?curid=45659) @@ -3187,7 +3186,6 @@ * [Bead](https://www.pcgamingwiki.com/wiki/?curid=65023) * [Beak Squadron](https://www.pcgamingwiki.com/wiki/?curid=124044) * [Beam](https://www.pcgamingwiki.com/wiki/?curid=135145) -* [BeamNG.drive](https://www.pcgamingwiki.com/wiki/?curid=9256) * [Bean Battles](https://www.pcgamingwiki.com/wiki/?curid=104837) * [Beans: The Coffee Shop Simulator](https://www.pcgamingwiki.com/wiki/?curid=62485) * [BeanVR](https://www.pcgamingwiki.com/wiki/?curid=62937) @@ -9373,7 +9371,6 @@ * [DUCK CASINO: BULLET](https://www.pcgamingwiki.com/wiki/?curid=113694) * [Duck Dynasty](https://www.pcgamingwiki.com/wiki/?curid=49514) * [Duck Force](https://www.pcgamingwiki.com/wiki/?curid=41549) -* [Duck Game](https://www.pcgamingwiki.com/wiki/?curid=27815) * [Duck Hunt Challenge](https://www.pcgamingwiki.com/wiki/?curid=122340) * [Duck Hunting](https://www.pcgamingwiki.com/wiki/?curid=60738) * [Duck in Town - A Rising Knight](https://www.pcgamingwiki.com/wiki/?curid=144985) @@ -10747,7 +10744,6 @@ * [Face It - A game to fight inner demons](https://www.pcgamingwiki.com/wiki/?curid=47335) * [Face Your Demons](https://www.pcgamingwiki.com/wiki/?curid=144232) * [Faceless](https://www.pcgamingwiki.com/wiki/?curid=70852) -* [Faces of War](https://www.pcgamingwiki.com/wiki/?curid=34370) * [Faceted Flight](https://www.pcgamingwiki.com/wiki/?curid=51147) * [Factions: Origins of Malu](https://www.pcgamingwiki.com/wiki/?curid=48413) * [Factory Balls](https://www.pcgamingwiki.com/wiki/?curid=132694) @@ -10846,7 +10842,6 @@ * [Fallen Haven](https://www.pcgamingwiki.com/wiki/?curid=131805) * [Fallen Haven: Liberation Day](https://www.pcgamingwiki.com/wiki/?curid=131807) * [Fallen Hearts](https://www.pcgamingwiki.com/wiki/?curid=156400) -* [Fallen Hero: Rebirth](https://www.pcgamingwiki.com/wiki/?curid=87173) * [Fallen Kingdom](https://www.pcgamingwiki.com/wiki/?curid=74932) * [Fallen Knight](https://www.pcgamingwiki.com/wiki/?curid=152330) * [Fallen Legion: Rise to Glory](https://www.pcgamingwiki.com/wiki/?curid=77321) @@ -11447,7 +11442,6 @@ * [Fishy Dungeon Delving](https://www.pcgamingwiki.com/wiki/?curid=134411) * [Fishy2](https://www.pcgamingwiki.com/wiki/?curid=156292) * [Fisk](https://www.pcgamingwiki.com/wiki/?curid=79058) -* [Fission Superstar X](https://www.pcgamingwiki.com/wiki/?curid=89702) * [Fist of Brave](https://www.pcgamingwiki.com/wiki/?curid=82117) * [Fist Of Heaven & Hell](https://www.pcgamingwiki.com/wiki/?curid=141182) * [Fist of love](https://www.pcgamingwiki.com/wiki/?curid=114336) @@ -21167,7 +21161,6 @@ * [Ninja Stealth 3](https://www.pcgamingwiki.com/wiki/?curid=77216) * [Ninja Striker!](https://www.pcgamingwiki.com/wiki/?curid=91937) * [Ninja Turdle](https://www.pcgamingwiki.com/wiki/?curid=156863) -* [Ninja Tycoon](https://www.pcgamingwiki.com/wiki/?curid=81633) * [Ninja Village War 2](https://www.pcgamingwiki.com/wiki/?curid=78260) * [Ninja Way](https://www.pcgamingwiki.com/wiki/?curid=74229) * [Ninja?](https://www.pcgamingwiki.com/wiki/?curid=125835) @@ -26164,8 +26157,6 @@ * [Salvation in Corruption](https://www.pcgamingwiki.com/wiki/?curid=75469) * [Salvator](https://www.pcgamingwiki.com/wiki/?curid=82292) * [Sam & Dan: Floaty Flatmates](https://www.pcgamingwiki.com/wiki/?curid=123878) -* [Sam & Max Save the World](https://www.pcgamingwiki.com/wiki/?curid=10590) -* [Sam & Max: Beyond Time and Space](https://www.pcgamingwiki.com/wiki/?curid=10632) * [Sam & Max: Beyond Time and Space (2021)](https://www.pcgamingwiki.com/wiki/?curid=173114) * [Sam & Max: This Time It's Virtual!](https://www.pcgamingwiki.com/wiki/?curid=165186) * [Sam Glyph: Private Eye!](https://www.pcgamingwiki.com/wiki/?curid=49534) @@ -26827,7 +26818,6 @@ * [Shadows of time](https://www.pcgamingwiki.com/wiki/?curid=150749) * [Shadows of War](https://www.pcgamingwiki.com/wiki/?curid=49043) * [Shadows Peak](https://www.pcgamingwiki.com/wiki/?curid=44074) -* [Shadows: Price for Our Sins](https://www.pcgamingwiki.com/wiki/?curid=40566) * [ShadowSide](https://www.pcgamingwiki.com/wiki/?curid=79934) * [Shadowverse](https://www.pcgamingwiki.com/wiki/?curid=52245) * [Shadowy Contracts](https://www.pcgamingwiki.com/wiki/?curid=132723) @@ -27176,7 +27166,6 @@ * [SILENT DOOM](https://www.pcgamingwiki.com/wiki/?curid=128419) * [Silent Footsteps](https://www.pcgamingwiki.com/wiki/?curid=103003) * [Silent Gentleman](https://www.pcgamingwiki.com/wiki/?curid=89332) -* [Silent Heroes: Elite Troops of WWII](https://www.pcgamingwiki.com/wiki/?curid=126542) * [Silent Hunter 4: Wolves of the Pacific](https://www.pcgamingwiki.com/wiki/?curid=41362) * [Silent Hunter 5: Battle of the Atlantic](https://www.pcgamingwiki.com/wiki/?curid=41163) * [Silent Night](https://www.pcgamingwiki.com/wiki/?curid=113526) @@ -27409,7 +27398,6 @@ * [Sky Dodge](https://www.pcgamingwiki.com/wiki/?curid=93196) * [Sky Fleet](https://www.pcgamingwiki.com/wiki/?curid=173698) * [Sky Flight](https://www.pcgamingwiki.com/wiki/?curid=121323) -* [Sky Force Anniversary](https://www.pcgamingwiki.com/wiki/?curid=37680) * [Sky Gamblers: Storm Raiders](https://www.pcgamingwiki.com/wiki/?curid=49015) * [Sky Haven](https://www.pcgamingwiki.com/wiki/?curid=81167) * [Sky Hawk](https://www.pcgamingwiki.com/wiki/?curid=90074) @@ -27887,7 +27875,6 @@ * [Soldiers of Freedom](https://www.pcgamingwiki.com/wiki/?curid=68128) * [Soldiers of Heaven VR](https://www.pcgamingwiki.com/wiki/?curid=40124) * [Soldiers of the Universe](https://www.pcgamingwiki.com/wiki/?curid=63610) -* [Soldiers: Heroes of World War II](https://www.pcgamingwiki.com/wiki/?curid=3707) * [Sole](https://www.pcgamingwiki.com/wiki/?curid=69082) * [Solenars Edge Heroes](https://www.pcgamingwiki.com/wiki/?curid=92931) * [Solenars Edge Rebirth](https://www.pcgamingwiki.com/wiki/?curid=65730) @@ -30817,7 +30804,6 @@ * [The Basilisk](https://www.pcgamingwiki.com/wiki/?curid=100294) * [The Battle for Sector 219](https://www.pcgamingwiki.com/wiki/?curid=42740) * [The Battle for the Hut](https://www.pcgamingwiki.com/wiki/?curid=92726) -* [The Battle for Wesnoth](https://www.pcgamingwiki.com/wiki/?curid=17699) * [The Battle Of Ages](https://www.pcgamingwiki.com/wiki/?curid=109208) * [The Battle Of Bellum](https://www.pcgamingwiki.com/wiki/?curid=112348) * [The Battle of Mahjong](https://www.pcgamingwiki.com/wiki/?curid=71851) @@ -36800,8 +36786,6 @@ * [Zzzzz](https://www.pcgamingwiki.com/wiki/?curid=149069) * [Бухой Батя / Drunk Dad](https://www.pcgamingwiki.com/wiki/?curid=121753) * [В поисках Атлантиды](https://www.pcgamingwiki.com/wiki/?curid=121077) -* [В тылу врага: Диверсанты 2](https://www.pcgamingwiki.com/wiki/?curid=147346) -* [В тылу врага: Диверсанты 3](https://www.pcgamingwiki.com/wiki/?curid=147347) * [ВЗЛОМ ЖОПЫ](https://www.pcgamingwiki.com/wiki/?curid=156519) * [Воин Хинора](https://www.pcgamingwiki.com/wiki/?curid=129623) * [ДОКА 2! - КРОВЬ, КИШКИ, ГОЛЫЕ СИСЬКИ](https://www.pcgamingwiki.com/wiki/?curid=125181) diff --git a/src/wiki.ts b/src/wiki.ts index 2c065e47..7e353298 100644 --- a/src/wiki.ts +++ b/src/wiki.ts @@ -317,6 +317,7 @@ function parsePath(path: string): [string, PathType] { return [ path .replace(/\\/g, "/") + .replace(/\/{2,}/g, "/") .replace(/\/(?=$)/g, "") .replace(/^~(?=($|\/))/, ""), pathType, @@ -630,6 +631,20 @@ function flattenParameter(nodes: Array): [string, boolean] { break; case "comment": break; + case "tag": + const [flatT, regularT] = flattenParameter(node.content); + if (!regularT) { + regular = false; + } + if (flatT.includes("/") || flatT.includes("\\")) { + // This is probably an unclosed tag with more path content after it, + // like `...//...`. + composite += `*/${flatT}`; + } else if (flatT.length > 0) { + // This is probably a closed tag, like `.../user ID/...`. + composite += "*"; + } + break; default: regular = false; break;