From 13817184adcc09056c08f2affdf7fe9af0081a35 Mon Sep 17 00:00:00 2001 From: Devashish Tomar Date: Thu, 9 Dec 2021 16:05:09 +0530 Subject: [PATCH] fixed markdown regex pattern of group 1 --- slither/utils/command_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/utils/command_line.py b/slither/utils/command_line.py index 7dd4a678c..1920d0fa0 100644 --- a/slither/utils/command_line.py +++ b/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: