Skip to content

Commit

Permalink
Merge pull request #210 from J1ufan/Complete-the-regularity
Browse files Browse the repository at this point in the history
Complete the regex for parsing the WHOIS response results for .jp domains.
  • Loading branch information
richardpenman authored Apr 17, 2024
2 parents abcf12f + f6d6ae7 commit 2576580
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions whois/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,11 +948,11 @@ class WhoisJp(WhoisEntry):
regex = {
"domain_name": r".*\[Domain Name\]\s*(.+)",
"registrant_org": r".*\[(?:Organization|Registrant)\](.+)",
"creation_date": r"\[(?:Registered Date|Created on)\]\s*(.+)",
"expiration_date": r"\[Expires on\]\s*(.+)",
"creation_date": r"\[(?:Registered Date|Created on|登録年月日)\]\s*(.+)",
"expiration_date": r"\[(?:Expires on|有効期限)\]\s*(.+)",
"name_servers": r".*\[Name Server\]\s*(.+)", # list of name servers
"updated_date": r"\[Last Updated?\]\s?(.+)",
"status": r"\[(?:State|Status)\]\s*(.+)", # list of statuses
"updated_date": r"\[(?:Last Updated|最終更新)?\]\s?(.+)",
"status": r"\[(?:State|Status|状態)\]\s*(.+)", # list of statuses
}

def __init__(self, domain, text):
Expand Down

0 comments on commit 2576580

Please sign in to comment.