From ad73a88e64e590c05bb9ff2a8cd9ae55c001914e Mon Sep 17 00:00:00 2001 From: Pierre Lalet Date: Tue, 14 Sep 2021 11:12:57 +0200 Subject: [PATCH] API key instructions: preserve content around URLs --- spiderfoot/templates/opts.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiderfoot/templates/opts.tmpl b/spiderfoot/templates/opts.tmpl index 03f54b1b70f..e8d207e580a 100644 --- a/spiderfoot/templates/opts.tmpl +++ b/spiderfoot/templates/opts.tmpl @@ -140,7 +140,7 @@ instructions = "" for step in apiKeyInstructions: if "https://" in step or "http://" in step: - step = re.sub(r'.*(https?://.[^ ]+).*', '\\1', step) + step = re.sub(r'(https?://.[^ ]+)', '\\1', step) instructions += f"
  • {step}
  • " %>