| author | Richard Penman <richardbp@gmail.com> |
| Wed, 21 Dec 2016 12:20:21 +0800 | |
| changeset 116 | fff9472eb920 |
| parent 114 | f3df17ee0909 (diff) |
| parent 115 | 2847d9930fa4 (current diff) |
| child 117 | 32947b10adce |
| whois/parser.py | file | annotate | diff | comparison | revisions |
--- a/whois/parser.py Wed Dec 21 10:15:58 2016 +0700 +++ b/whois/parser.py Wed Dec 21 12:20:21 2016 +0800 @@ -126,7 +126,7 @@ values = [] for value in re.findall(regex, self.text, re.IGNORECASE): value = value.strip() - if value and isinstance(value, basestring) and not value.isdigit(): + if value and isinstance(value, basestring) and not value.isdigit() and '_date' in attr: # try casting to date format value = cast_date( value,