Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 3946c47

Browse files
committed
simplefy date regexes on com_tr
1 parent 7ce4f4d commit 3946c47

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DONE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ DONE
2020
- add commment that unfortunately we cannot currently use rtrim on input from whois response and may regexes expect
2121
either \r or trailing whitespace, this can be done later and would make many regexes simpler in end detection
2222

23+
- simplefy com.tr regex from multiple . to \.+, and add note on the trailing dot behind the date

whois/tld_regexpr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@
276276
"registrar": r"Organization Name\s+:\s?(.+)",
277277
"registrant": r"\*\* Registrant:\s+?(.+)",
278278
"registrant_country": None,
279-
"creation_date": r"Created on..............:\s?(.+).",
280-
"expiration_date": r"Expires on..............:\s?(.+).",
279+
"creation_date": r"Created on\.+:\s?(.+).",
280+
"expiration_date": r"Expires on\.+:\s?(.+).", # note the trailing . on both dates fields
281281
"updated_date": "",
282282
"name_servers": r"\*\* Domain Servers:\n(?:(\S+)\n)(?:(\S+)\n)?(?:(\S+)\n)?(?:(\S+)\n)?(?:(\S+)\n)?(?:(\S+)\n)\n?",
283283
"status": None,

0 commit comments

Comments
 (0)