From 2c6f962d8f0f866d4a168ad5ceb8518c404d26f7 Mon Sep 17 00:00:00 2001 From: dot-Comfey <84290266+dot-Comfey@users.noreply.github.com> Date: Sun, 20 Apr 2025 23:35:23 -0700 Subject: [PATCH] Preact: Fix auto-show spoilers (#2389) --- play.pokemonshowdown.com/src/battle-log.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/play.pokemonshowdown.com/src/battle-log.ts b/play.pokemonshowdown.com/src/battle-log.ts index 7fb759c98..06863569c 100644 --- a/play.pokemonshowdown.com/src/battle-log.ts +++ b/play.pokemonshowdown.com/src/battle-log.ts @@ -1310,7 +1310,7 @@ export class BattleLog { str = str.replace(/]*>/g, '').replace(/<\/a>/g, ''); } if (options.hidespoiler) { - str = str.replace(//g, ''); + str = str.replace(//g, ''); } if (options.hidegreentext) { str = str.replace(//g, ''); diff --git a/tsconfig.json b/tsconfig.json index f9fcc1888..e4b0e1c43 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "lib": ["dom", "es6", "es2016.array.include", "es2017.object"], + "lib": ["dom", "dom.iterable", "es6", "es2016.array.include", "es2017.object"], "noEmit": true, "target": "esnext", "module": "None",