Skip to content

Commit

Permalink
API key instructions: preserve content around URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- committed Sep 14, 2021
1 parent c98aaa8 commit ad73a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spiderfoot/templates/opts.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
instructions = ""
for step in apiKeyInstructions:
if "https://" in step or "http://" in step:
step = re.sub(r'.*(https?://.[^ ]+).*', '<a target=_new href=\'\\1\'>\\1</a>', step)
step = re.sub(r'(https?://.[^ ]+)', '<a target=_new href=\'\\1\'>\\1</a>', step)
instructions += f"<li>{step}</li>"
%>
&nbsp;&nbsp;<a href='#' data-html="true" data-toggle="popover" data-trigger="focus" title="Instructions" data-content="<ol>${instructions}</ol>"><i class="glyphicon glyphicon-question-sign"></i></a>
Expand Down

0 comments on commit ad73a88

Please sign in to comment.