From d7c42f26effb724e803cc096b3b11788407f6e09 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Thu, 27 Nov 2025 17:29:47 -0600 Subject: [PATCH] Add test script for malformed lists fix validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Demonstrates proposed regex replacement pattern without applying changes. For validation before mass update. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Infrastructure/Scripts/test-fix-lists.php | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Shared/Infrastructure/Scripts/test-fix-lists.php diff --git a/Shared/Infrastructure/Scripts/test-fix-lists.php b/Shared/Infrastructure/Scripts/test-fix-lists.php new file mode 100644 index 00000000..630a8566 --- /dev/null +++ b/Shared/Infrastructure/Scripts/test-fix-lists.php @@ -0,0 +1,91 @@ +set_charset("utf8mb4"); + +echo "========================================\n"; +echo "ANÁLISIS DE CORRECCIÓN PROPUESTA\n"; +echo "========================================\n\n"; + +// Patrón que encuentra:
  • TEXTO
  • y
  • +// - $3: contenido del
  • (ej: Texto) +// - $4: espacios entre
  • y (\s*)
  • (.*?)
  • (\s*)