From 0a6728e2d289033c4c5e8bac0aeed0256e4137b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Goldberg Date: Mon, 27 Nov 2023 01:01:31 -0600 Subject: [PATCH] \w is not whitespace. Derp --- rendercv/data_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rendercv/data_model.py b/rendercv/data_model.py index 0a96edf..5073a4c 100644 --- a/rendercv/data_model.py +++ b/rendercv/data_model.py @@ -1083,12 +1083,12 @@ class Connection(BaseModel): # URL_PREFIX_RE = %r{\Ahttp(s?)://[^/]+} pattern = re.compile(r""" - ^\w* # ignore leading spaces + ^\s* # ignore leading spaces @? # Optional @ prefix (?P[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?) # username part @ # separator (?P[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?) # domain part - \w*$ # ignore trailing whitespace + \s*$ # ignore trailing whitespace """, re.VERBOSE | re.IGNORECASE) m = pattern.match(id)