fix: normalize Windows file paths in failure patterns

(cherry picked from commit e0de4739a9)
This commit is contained in:
Eneko Ruiz authored and haelyra committed 2026-10-20 17:38:37 -04:00
1 parent acc24a226f
commit 9824f422d2
2 files changed
+23 -4

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ function normalizeFailureReason(reason) {
// Strip UUIDs (already lowercased)
.replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/g, '<uuid>')
// Strip file paths
.replace(/\/[\w./-]+/g, '<path>')
.replace(/(?:\b[a-z]:)?[\\/][\w./\\-]+/g, '<path>')
// Collapse whitespace
.replace(/\s+/g, ' ')
.trim();