summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-11-30 12:55:32 -0500
committerBen Sima <ben@bsima.me>2021-11-30 12:55:32 -0500
commit1f9d834d429cfed3708262090074da955e7f3f81 (patch)
treec3b6fb8a17e5b0208e9d2b48e501cdb45857e980
parente239a5db0f28bd2cf7c92e2f65373ef6a156c3a2 (diff)
ignore case
-rwxr-xr-xdomain2
1 files changed, 1 insertions, 1 deletions
diff --git a/domain b/domain
index 7feee9a..24e2d68 100755
--- a/domain
+++ b/domain
@@ -38,7 +38,7 @@ for tld in args.tlds:
res = subprocess.run(["whois", domain], stdout=subprocess.PIPE).stdout.decode(
"utf-8"
)
- if re.search(regex, res):
+ if re.search(regex, res, re.IGNORECASE):
print("ok:", domain)
else:
print("no:", domain)