summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/private.py
diff options
context:
space:
mode:
authorklm1998-07-11 23:19:08 +0000
committerklm1998-07-11 23:19:08 +0000
commiteaf7754919e748883c4f048fc34b7438091f7934 (patch)
tree4f4ea42c981277659416db9ff86d73307989b060 /Mailman/Cgi/private.py
parenta6f40eebe7509d3265e0ea01a8004ba0a2f05cd3 (diff)
downloadmailman-eaf7754919e748883c4f048fc34b7438091f7934.tar.gz
mailman-eaf7754919e748883c4f048fc34b7438091f7934.tar.zst
mailman-eaf7754919e748883c4f048fc34b7438091f7934.zip
Diffstat (limited to 'Mailman/Cgi/private.py')
-rw-r--r--Mailman/Cgi/private.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/Mailman/Cgi/private.py b/Mailman/Cgi/private.py
index d94a0882f..c9a9088d7 100644
--- a/Mailman/Cgi/private.py
+++ b/Mailman/Cgi/private.py
@@ -70,16 +70,19 @@ PAGE = '''
login_attempted = 0
_list = None
-
name_pat = re.compile(
- r'(?: / (?: \d{4} q \d\. )?' # Match "/", and, optionally, 1998q1.
- r'( [^/]* ) /?' # The SIG name
- r'/[^/]*$' # The trailing 12345.html portion
- r') | (?:'
- r'/ ( [^/.]* )' # Match matrix-sig
- r'(?:\.html)?' # Optionally match .html
- r'/?' # Optionally match a trailing slash
- r'$' # Must match to end of string
+ r'(?: ' # Being first alternative...
+ r'/ (?: \d{4} q \d\. )?' # Match "/", and, optionally, 1998q1.
+ r'( [^/]* ) /?' # The list name
+ r'/[^/]*$' # The trailing 12345.html portion
+ r')' # End first alternative
+ r' | '
+ r'(?:' # Begin second alternative...
+ r'/ ( [^/.]* )' # Match matrix-sig
+ r'(?:\.html)?' # Optionally match .html
+ r'/?' # Optionally match a trailing slash
+ r'$' # Must match to end of string
+ r')' # And close the second alternate.
, re.VERBOSE)
def getListName(path):