Year match only 1900-2099

This commit is contained in:
Ruud
2012-12-17 18:21:15 +01:00
parent 63246256ee
commit a57ba9026d
+1 -1
View File
@@ -775,7 +775,7 @@ class Scanner(Plugin):
return None
def findYear(self, text):
matches = re.search('(?P<year>[12]{1}[0-9]{3})', text)
matches = re.search('(?P<year>19[0-9]{2}|20[0-9]{2})', text)
if matches:
return matches.group('year')