From 4c5510278971b47dbf58b6ed516afcd7c215a50a Mon Sep 17 00:00:00 2001 From: ParitoshKabra <76113183+ParitoshKabra@users.noreply.github.com> Date: Fri, 6 May 2022 14:06:26 +0530 Subject: [PATCH] fix(torsf): ensure tor-logs-filtering regexp is correct (#707) * Fix Regex in TorProgressRegex * fix: update regexp link As suggested by @hellais Co-authored-by: Simone Basso --- internal/engine/experiment/torsf/torsf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/engine/experiment/torsf/torsf.go b/internal/engine/experiment/torsf/torsf.go index f201e03..705e6f6 100644 --- a/internal/engine/experiment/torsf/torsf.go +++ b/internal/engine/experiment/torsf/torsf.go @@ -196,9 +196,9 @@ func (m *Measurer) bootstrap(ctx context.Context, sess model.ExperimentSession, // torProgressRegexp helps to extract progress info from logs. // -// See https://regex101.com/r/3YfIed/1. +// See https://regex101.com/r/cer3lm/1. var torProgressRegexp = regexp.MustCompile( - `^[A-Za-z0-9.: ]+ \[notice\] Bootstrapped [0-9]+% \([a-zA-z]+\): [A-Za-z0-9 ]+$`) + `^[A-Za-z0-9.: ]+ \[notice\] Bootstrapped [0-9]+% \([A-Za-z_]+\): [A-Za-z0-9 ]+$`) // readTorLogs attempts to read and include the tor logs into // the test keys if this operation is possible.