| author | Richard Penman |
| Wed, 21 Dec 2016 10:22:25 +0800 | |
| changeset 114 | f3df17ee0909 |
| parent 113 | bb2f29951cbb (diff) |
| parent 112 | 8acab8765146 (current diff) |
| child 116 | fff9472eb920 |
| whois/parser.py | file | annotate | diff | comparison | revisions |
--- a/whois/parser.py Tue Dec 20 22:12:35 2016 +0700 +++ b/whois/parser.py Wed Dec 21 10:22:25 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,