Normalize some consecutive asterisks

This commit is contained in:
mtkennerly 2024-03-11 21:58:58 -04:00
parent 568c9dffda
commit a1efb2f3a3
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 80 additions and 76 deletions

View file

@ -3978,7 +3978,7 @@ $1 Ride:
id: 737600
40 Winks:
files:
"<base>/memcard/Mcd****.mcr":
"<base>/memcard/Mcd*.mcr":
tags:
- save
when:
@ -23788,7 +23788,7 @@ Alien Bubble Destroyer:
id: 779310
Alien Cabal:
files:
"<base>/AC95****.ACG":
"<base>/AC95*.ACG":
tags:
- save
when:
@ -23803,7 +23803,7 @@ Alien Cabal:
- config
when:
- os: windows
"<base>/SAVE****.ACG":
"<base>/SAVE*.ACG":
tags:
- save
when:
@ -24090,7 +24090,7 @@ Alien Legacy:
- save
when:
- os: dos
"<base>/SAVE**.GAM":
"<base>/SAVE*.GAM":
tags:
- save
when:
@ -60331,7 +60331,7 @@ Beneath The Surface:
id: 792050
Beneath a Steel Sky:
files:
"<base>/SKY-VM.***":
"<base>/SKY-VM.*":
tags:
- save
when:
@ -70645,7 +70645,7 @@ Blood will be Spilled:
- config
when:
- os: windows
"<winAppData>/Nightdive Studios/Blood EX/saves/save_**.sav":
"<winAppData>/Nightdive Studios/Blood EX/saves/save_*.sav":
tags:
- save
when:
@ -90305,14 +90305,14 @@ Carnivore Land:
id: 397860
Carnivores:
files:
"<base>/trophy**.sav":
"<base>/trophy*.sav":
tags:
- save
when:
- os: windows
Carnivores 2:
files:
"<base>/trophy**.sav":
"<base>/trophy*.sav":
tags:
- save
when:
@ -101277,7 +101277,7 @@ Chronomaster:
- save
when:
- os: dos
"<base>/SAVE.0**":
"<base>/SAVE.0*":
tags:
- save
when:
@ -110335,7 +110335,7 @@ Command & Conquer:
- config
when:
- os: dos
"<base>/savegame.***":
"<base>/savegame.*":
tags:
- save
when:
@ -110539,7 +110539,7 @@ Command & Conquer Remastered Collection:
- config
when:
- os: windows
"<base>/savegame.***":
"<base>/savegame.*":
tags:
- save
when:
@ -110679,7 +110679,7 @@ Command & Conquer Remastered Collection:
- os: windows
"Command & Conquer: Tiberian Sun":
files:
"<base>/SAVE****.sav":
"<base>/SAVE*.sav":
tags:
- save
when:
@ -127277,7 +127277,7 @@ CyberHive:
- save
when:
- os: dos
"<base>/SAVE0**.DAT":
"<base>/SAVE0*.DAT":
tags:
- save
when:
@ -132951,7 +132951,7 @@ Dark Space Conqueror:
- config
when:
- os: dos
"<base>/SAVE**.SAV":
"<base>/SAVE*.SAV":
tags:
- save
when:
@ -132975,7 +132975,7 @@ Dark Space Conqueror:
- config
when:
- os: dos
"<base>/SAVE**.SAV":
"<base>/SAVE*.SAV":
tags:
- save
when:
@ -139567,7 +139567,7 @@ Death Gasp VR:
id: 1199130
Death Gate:
files:
"<base>/DGATE***.SAV":
"<base>/DGATE*.SAV":
tags:
- save
when:
@ -140571,7 +140571,7 @@ DeathCrank:
id: 391290
DeathKeep:
files:
"<base>/DkSave**.sav":
"<base>/DkSave*.sav":
tags:
- save
when:
@ -148378,7 +148378,7 @@ Deus:
- config
when:
- os: dos
"<base>/SAVE**":
"<base>/SAVE*":
tags:
- save
when:
@ -162323,7 +162323,7 @@ Dragonsphere:
- config
when:
- os: dos
"<base>/DRAG0**.SAV":
"<base>/DRAG0*.SAV":
tags:
- save
when:
@ -166391,7 +166391,7 @@ Drymir Cave under Richmordnom:
id: 913570
"Dráscula: The Vampire Strikes Back":
files:
"<base>/drascula**":
"<base>/drascula*":
tags:
- save
when:
@ -183628,7 +183628,7 @@ Eradicated:
id: 548270
Eradicator:
files:
"<base>/ERAD**.SAV":
"<base>/ERAD*.SAV":
tags:
- save
when:
@ -195541,7 +195541,7 @@ Fallen Empires:
id: 228260
Fallen Haven:
files:
"<base>/savegame.**":
"<base>/savegame.*":
tags:
- save
when:
@ -207388,7 +207388,7 @@ Flight of the Amazon Queen:
- config
when:
- os: windows
"<base>/queen.s**":
"<base>/queen.s*":
tags:
- save
when:
@ -232834,7 +232834,7 @@ Gold Rush In The Oort Cloud:
id: 661530
Gold Rush!:
files:
"<base>/GRSG.**":
"<base>/GRSG.*":
tags:
- save
when:
@ -238767,7 +238767,7 @@ Grim Earth:
id: 940990
Grim Fandango:
files:
"<base>/grim**.gsv":
"<base>/grim*.gsv":
tags:
- save
when:
@ -242816,7 +242816,7 @@ Gurugedara:
id: 701010
"Gurumin: A Monstrous Adventure":
files:
"<root>/userdata/<storeUserId>/322290/remote/gdata**.sav":
"<root>/userdata/<storeUserId>/322290/remote/gdata*.sav":
tags:
- save
when:
@ -245782,7 +245782,7 @@ Halls of Torment:
id: 2218750
"Halls of the Dead: Faery Tale Adventure II":
files:
"<base>/0**.SAV":
"<base>/0*.SAV":
tags:
- save
when:
@ -287005,7 +287005,7 @@ Jazz Jackrabbit 2:
- config
when:
- os: windows
"<base>/SAVEGAME.***":
"<base>/SAVEGAME.*":
tags:
- save
when:
@ -297367,7 +297367,7 @@ King under the Mountain:
id: 10100
"King's Quest IV: The Perils of Rosella":
files:
"<base>/KQ4SG.***":
"<base>/KQ4SG.*":
tags:
- save
when:
@ -297388,7 +297388,7 @@ King under the Mountain:
id: 10100
"King's Quest V: Absence Makes the Heart Go Yonder!":
files:
"<base>/KQ5SG.***":
"<base>/KQ5SG.*":
tags:
- save
when:
@ -297406,7 +297406,7 @@ King under the Mountain:
id: 10100
"King's Quest VI: Heir Today, Gone Tomorrow":
files:
"<base>/KQ6SG.***":
"<base>/KQ6SG.*":
tags:
- save
when:
@ -297424,7 +297424,7 @@ King under the Mountain:
id: 10100
"King's Quest VII: The Princeless Bride":
files:
"<base>/KQ7CDSG.***":
"<base>/KQ7CDSG.*":
tags:
- save
when:
@ -304956,7 +304956,7 @@ Lands of Lore III:
- 1207658980
"Lands of Lore: The Throne of Chaos":
files:
"<base>/_SAVE***.DAT":
"<base>/_SAVE*.DAT":
tags:
- save
when:
@ -309539,7 +309539,7 @@ Legends of Time:
id: 514400
Legends of Valour:
files:
"<base>/CHAR**.DAT":
"<base>/CHAR*.DAT":
tags:
- save
when:
@ -316002,7 +316002,7 @@ Little Big Adventure:
- config
when:
- os: dos
"<base>/S****.LBA":
"<base>/S*.LBA":
tags:
- save
when:
@ -319991,7 +319991,7 @@ Lost Dimension:
id: 626600
Lost Eden:
files:
"<base>/EDV2_***.SAV":
"<base>/EDV2_*.SAV":
tags:
- save
when:
@ -338991,7 +338991,7 @@ Mega Man Legacy Collection 2:
id: 495050
Mega Man Legends:
files:
"<base>/DASH_**.MCD":
"<base>/DASH_*.MCD":
tags:
- save
when:
@ -340827,7 +340827,7 @@ Menzoberranzan:
- config
when:
- os: dos
"<base>/SAVE**":
"<base>/SAVE*":
tags:
- save
when:
@ -345077,7 +345077,7 @@ Might & Mayhem:
- 1207658788
"Might and Magic III: Isles of Terra":
files:
"<base>/SAVE**.MM3":
"<base>/SAVE*.MM3":
tags:
- save
when:
@ -345155,7 +345155,7 @@ Might and Magic IX:
alias: "Might & Magic: Clash of Heroes"
"Might and Magic: Clouds of Xeen":
files:
"<base>/XEEN**.SAV":
"<base>/XEEN*.SAV":
tags:
- save
when:
@ -345172,7 +345172,7 @@ Might and Magic IX:
- 1207658788
"Might and Magic: Darkside of Xeen":
files:
"<base>/DARK**.SAV":
"<base>/DARK*.SAV":
tags:
- save
when:
@ -345189,12 +345189,12 @@ Might and Magic IX:
- 1207658788
"Might and Magic: World of Xeen":
files:
"<base>/XEEN**.SAV":
"<base>/XEEN*.SAV":
tags:
- save
when:
- os: dos
"<base>/XEEN**.WOX":
"<base>/XEEN*.WOX":
tags:
- save
when:
@ -351245,7 +351245,7 @@ Monkey GO Happy:
id: 32460
"Monkey Island 2: LeChuck's Revenge":
files:
"<base>/SAVEGAME.***":
"<base>/SAVEGAME.*":
tags:
- save
when:
@ -353646,7 +353646,7 @@ Monty Python & the Quest for the Holy Grail:
- os: windows
"Monty Python's Complete Waste of Time":
files:
"<winDir>/7THLEVEL.***":
"<winDir>/7THLEVEL.*":
tags:
- save
when:
@ -389188,7 +389188,7 @@ Orion (2018):
id: 811190
Orion Burger:
files:
"<base>/BURG0**.SAV":
"<base>/BURG0*.SAV":
tags:
- save
when:
@ -412457,12 +412457,12 @@ Police Patrol:
- config
when:
- os: windows
"<base>/PQ2/PQSG.***":
"<base>/PQ2/PQSG.*":
tags:
- save
when:
- os: windows
"<base>/cloud_saves/PQSG.***":
"<base>/cloud_saves/PQSG.*":
tags:
- save
when:
@ -412516,7 +412516,7 @@ Police Patrol:
- save
when:
- os: windows
"<base>/PQ1SG.***":
"<base>/PQ1SG.*":
tags:
- save
when:
@ -417731,7 +417731,7 @@ Prince of Persia (2008):
- os: dos
Prince of Persia 3D:
files:
"<base>/Level ** Start, Level ** Start.bmp":
"<base>/Level * Start, Level * Start.bmp":
tags:
- save
when:
@ -428227,7 +428227,7 @@ Quest for Conquest:
id: 1147020
"Quest for Glory II: Trial by Fire":
files:
"<base>/TRIALSG.***":
"<base>/TRIALSG.*":
tags:
- save
when:
@ -428244,7 +428244,7 @@ Quest for Conquest:
id: 502750
"Quest for Glory III: Wages of War":
files:
"<base>/GLORYSG.***":
"<base>/GLORYSG.*":
tags:
- save
when:
@ -428281,7 +428281,7 @@ Quest for Conquest:
id: 502750
"Quest for Glory: Shadows of Darkness":
files:
"<base>/GLORYSG.***":
"<base>/GLORYSG.*":
tags:
- save
when:
@ -428301,7 +428301,7 @@ Quest for Conquest:
id: 502750
"Quest for Glory: So You Want to Be a Hero":
files:
"<base>/GLORYSG.***":
"<base>/GLORYSG.*":
tags:
- save
when:
@ -434217,7 +434217,7 @@ Raptor Valley:
id: 524120
"Raptor: Call of the Shadows":
files:
"<base>/CHAR****.FIL":
"<base>/CHAR*.FIL":
tags:
- save
when:
@ -434250,7 +434250,7 @@ Raptor Valley:
id: 358360
"Raptor: Call of the Shadows 2010 Edition":
files:
"<base>/CHAR****.FIL":
"<base>/CHAR*.FIL":
tags:
- save
when:
@ -434723,7 +434723,7 @@ Ravenland:
- config
when:
- os: dos
"<base>/SAVE**":
"<base>/SAVE*":
tags:
- save
when:
@ -434748,7 +434748,7 @@ Ravenland:
- config
when:
- os: dos
"<base>/SAVE**":
"<base>/SAVE*":
tags:
- save
when:
@ -463201,7 +463201,7 @@ Sam & Max Hit the Road:
- config
when:
- os: windows
"<base>/samnmax.s**":
"<base>/samnmax.s*":
tags:
- save
when:
@ -466767,7 +466767,7 @@ Schein:
- config
when:
- os: windows
"<base>/Schizm.s**":
"<base>/Schizm.s*":
tags:
- save
when:
@ -500126,7 +500126,7 @@ Space Punks:
- config
when:
- os: windows
"<base>/sq6/SQ6SG.***":
"<base>/sq6/SQ6SG.*":
tags:
- save
when:
@ -500214,7 +500214,7 @@ Space Punks:
- config
when:
- os: windows
"<base>/sq4/SQ4SG.***":
"<base>/sq4/SQ4SG.*":
tags:
- save
when:
@ -500237,7 +500237,7 @@ Space Punks:
- config
when:
- os: windows
"<base>/sq5/SQ5SG.***":
"<base>/sq5/SQ5SG.*":
tags:
- save
when:
@ -500255,7 +500255,7 @@ Space Punks:
id: 10110
"Space Quest: Chapter I - The Sarien Encounter":
files:
"<base>/SQ1SG.***":
"<base>/SQ1SG.*":
tags:
- save
when:
@ -521096,7 +521096,7 @@ Stronghold:
- save
when:
- os: dos
"<base>/STRONG.SAV/SAVE.***":
"<base>/STRONG.SAV/SAVE.*":
tags:
- save
when:
@ -533983,7 +533983,7 @@ Swords of Legends Online:
id: 1418100
Swords of Xeen:
files:
"<base>/SWRD**.SAV":
"<base>/SWRD*.SAV":
tags:
- save
when:
@ -535117,7 +535117,7 @@ System Shock 2 Enhanced Edition:
- save
when:
- os: windows
"<winAppData>/Nightdive Studios/System Shock EE/savegame/archive/savgam**.dat":
"<winAppData>/Nightdive Studios/System Shock EE/savegame/archive/savgam*.dat":
tags:
- save
when:
@ -551902,7 +551902,7 @@ The Collider 2:
id: 357010
"The Colonel's Bequest":
files:
"<base>/CB1SG.***":
"<base>/CB1SG.*":
tags:
- save
when:
@ -561091,7 +561091,7 @@ The Imperial Gatekeeper:
- save
when:
- os: windows
"<base>/save/Sandbox.sav**":
"<base>/save/Sandbox.sav*":
tags:
- save
when:
@ -565926,7 +565926,7 @@ The Lion King:
id: 561120
"The Lion King II: Simba's Pride GameBreak!":
registry:
HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Disney Interactive/SPAG**:
HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Disney Interactive/SPAG*:
tags:
- config
"The Lion's Song":
@ -607486,7 +607486,7 @@ Ultima Defesa:
- 1207658965
"Ultima VII Part Two: Serpent Isle":
files:
"<base>/GAME**.U7":
"<base>/GAME*.U7":
tags:
- save
when:
@ -607500,7 +607500,7 @@ Ultima Defesa:
id: 1207662633
"Ultima VII: The Black Gate":
files:
"<base>/GAME**.U7":
"<base>/GAME*.U7":
tags:
- save
when:
@ -630487,7 +630487,7 @@ Warriors Orochi 4:
id: 831560
Warriors of Legend:
files:
"<base>/GAME**.DAT":
"<base>/GAME*.DAT":
tags:
- save
when:
@ -638730,7 +638730,7 @@ Wing Commander:
- 1207658960
"Wing Commander III: Heart of the Tiger":
files:
"<base>/00000***.WSG":
"<base>/00000*.WSG":
tags:
- save
when:
@ -646302,7 +646302,7 @@ X-ray Hospital:
id: 850720
"X2: The Threat":
files:
"<base>/**.sav":
"<base>/*.sav":
tags:
- save
when:
@ -652510,7 +652510,7 @@ Zak McKracken and the Alien Mindbenders:
- config
when:
- os: windows
"<base>/zak.s**":
"<base>/zak.s*":
tags:
- save
when:

View file

@ -558,6 +558,8 @@ impl WikiPath {
}
static CONSECUTIVE_SLASHES: Lazy<Regex> = Lazy::new(|| Regex::new(r"/{2,}").unwrap());
static UNNECESSARY_DOUBLE_STAR_1: Lazy<Regex> = Lazy::new(|| Regex::new(r"([^/*])\*{2,}").unwrap());
static UNNECESSARY_DOUBLE_STAR_2: Lazy<Regex> = Lazy::new(|| Regex::new(r"\*{2,}([^/*])").unwrap());
static ENDING_WILDCARD: Lazy<Regex> = Lazy::new(|| Regex::new(r"(/\*)+$").unwrap());
static APP_DATA: Lazy<Regex> = Lazy::new(|| Regex::new(r"(?i)%appdata%").unwrap());
static APP_DATA_ROAMING: Lazy<Regex> = Lazy::new(|| Regex::new(r"(?i)%userprofile%/AppData/Roaming").unwrap());
@ -568,6 +570,8 @@ impl WikiPath {
for (pattern, replacement) in [
(&CONSECUTIVE_SLASHES, "/"),
(&UNNECESSARY_DOUBLE_STAR_1, "${1}*"),
(&UNNECESSARY_DOUBLE_STAR_2, "*${1}"),
(&ENDING_WILDCARD, ""),
(&APP_DATA, placeholder::WIN_APP_DATA),
(&APP_DATA_ROAMING, placeholder::WIN_APP_DATA),