0004-misc-fix-warnings-about-regexps-72941.patch
zoo/zoo_nanterre/utils.py | ||
---|---|---|
171 | 171 | |
172 | 172 |
class PersonSearch(object): |
173 | 173 |
EMAIL_RE = re.compile( |
174 |
'^[a-zA-Z0-9.+_-]*@[a-zA-Z0-9.+_-]*$') |
|
174 |
r'^[a-zA-Z0-9.+_-]*@[a-zA-Z0-9.+_-]*$')
|
|
175 | 175 |
DATE_RE1 = re.compile( |
176 |
'^(?:(?P<year>\d\d|\d\d\d\d)(?:-(?P<month>\d{1,2})(?:-(?P<day>\d{1,2}))?)?)$') |
|
176 |
r'^(?:(?P<year>\d\d|\d\d\d\d)(?:-(?P<month>\d{1,2})(?:-(?P<day>\d{1,2}))?)?)$')
|
|
177 | 177 |
DATE_RE2 = re.compile( |
178 |
'^(?:(?:(?:(?P<day>\d{1,2})/)?(?P<month>\d{1,2})/)?(?P<year>\d\d|\d\d\d\d))$') |
|
178 |
r'^(?:(?:(?:(?P<day>\d{1,2})/)?(?P<month>\d{1,2})/)?(?P<year>\d\d|\d\d\d\d))$')
|
|
179 | 179 | |
180 | 180 |
@classmethod |
181 | 181 |
def match_birthdate(cls, birthdate): |
182 |
- |