mirror of https://github.com/eyhc1/rendercv.git
\w is not whitespace. Derp
This commit is contained in:
parent
0e3cdf7295
commit
0a6728e2d2
|
@ -1083,12 +1083,12 @@ class Connection(BaseModel):
|
||||||
# URL_PREFIX_RE = %r{\Ahttp(s?)://[^/]+}
|
# URL_PREFIX_RE = %r{\Ahttp(s?)://[^/]+}
|
||||||
|
|
||||||
pattern = re.compile(r"""
|
pattern = re.compile(r"""
|
||||||
^\w* # ignore leading spaces
|
^\s* # ignore leading spaces
|
||||||
@? # Optional @ prefix
|
@? # Optional @ prefix
|
||||||
(?P<uname>[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?) # username part
|
(?P<uname>[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?) # username part
|
||||||
@ # separator
|
@ # separator
|
||||||
(?P<domain>[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?) # domain part
|
(?P<domain>[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?) # domain part
|
||||||
\w*$ # ignore trailing whitespace
|
\s*$ # ignore trailing whitespace
|
||||||
""", re.VERBOSE | re.IGNORECASE)
|
""", re.VERBOSE | re.IGNORECASE)
|
||||||
|
|
||||||
m = pattern.match(id)
|
m = pattern.match(id)
|
||||||
|
|
Loading…
Reference in New Issue