diff --git a/src/pipx/commands/run.py b/src/pipx/commands/run.py index 9bf851d282..2da674826b 100644 --- a/src/pipx/commands/run.py +++ b/src/pipx/commands/run.py @@ -327,7 +327,7 @@ def _http_get_request(url: str) -> str: PEP723 = re.compile( - r"(?m)^# /// (?P[a-zA-Z0-9-]+)$\s(?P(^#(| .*)$\s)+)^# ///$" + r"(?m)^# /// (?P[a-zA-Z0-9-]+)$\s{1,2}(?P(^#(| .*)$\s{1,2})+)^# ///$" )