fixed markdown regex pattern of group 1

pull/988/head
Devashish Tomar 3 years ago
parent dc033c1d48
commit 13817184ad
No known key found for this signature in database
GPG Key ID: 33707487BFCE8A5C
  1. 2
      slither/utils/command_line.py

@ -338,7 +338,7 @@ def output_printers_json(printer_classes):
def check_and_sanitize_markdown_root(markdown_root: str) -> str:
# Regex to check whether the markdown_root is a GitHub URL
match = re.search(
r"(https://)github.com/([a-zA-z-]+)([:/][A-Za-z0-9_.-]+[:/]?)([A-Za-z0-9_.-]*)(.*)",
r"(https://)github.com/([a-zA-Z-]+)([:/][A-Za-z0-9_.-]+[:/]?)([A-Za-z0-9_.-]*)(.*)",
markdown_root,
)
if match:

Loading…
Cancel
Save