[Zope-Checkins] CVS: Zope2 - User.py:1.145.8.4

chrism@serenade.digicool.com chrism@serenade.digicool.com
Tue, 24 Apr 2001 12:49:31 -0400


Update of /cvs-repository/Zope2/lib/python/AccessControl
In directory serenade.digicool.com:/home/chrism/sandboxes/RegexExtermination/lib/python/AccessControl

Modified Files:
      Tag: ajung-2_4-ts_regex-exterminiation-branch
	User.py 
Log Message:
changed addr_match and host_match


--- Updated File User.py in package Zope2 --
--- User.py	2001/04/23 16:25:19	1.145.8.3
+++ User.py	2001/04/24 16:49:30	1.145.8.4
@@ -984,9 +984,8 @@
     roles.sort()
     return roles
 
-addr_match=re.compile(r'[0-9\.\*]*').match #TS
-host_match=re.compile(r'[-A-Za-z0-9\.\*]*').match #TS
-
+addr_match=re.compile(r'[\d.]*').match
+host_match=re.compile(r'[-\w.]*').match
 
 def domainSpecMatch(spec, request):
     host=''