From 0ab4d27d80e3837f704373730201b431d5c09897 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 27 Jan 2025 10:21:17 +0100 Subject: [PATCH] fix dev regex on windows --- libs/testdiff/replacement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/testdiff/replacement.go b/libs/testdiff/replacement.go index cb966684a..51193c0bb 100644 --- a/libs/testdiff/replacement.go +++ b/libs/testdiff/replacement.go @@ -23,7 +23,7 @@ var ( uuidRegex = regexp.MustCompile(`[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`) numIdRegex = regexp.MustCompile(`[0-9]{3,}`) privatePathRegex = regexp.MustCompile(`(/tmp|/private)(/.*)/([a-zA-Z0-9]+)`) - devVersionRegex = regexp.MustCompile(`0\.0\.0-dev\+[a-f0-9]{10,16}`) + devVersionRegex = regexp.MustCompile(`0\.0\.0-dev(\+[a-f0-9]{10,16})?`) ) type Replacement struct {