Make the regex search even stupider

(aka catch more)
This commit is contained in:
HackerNCoder 2021-12-26 23:12:08 +00:00
parent 39a8fd514d
commit 6d6e1330d1
No known key found for this signature in database
GPG key ID: 569FFF33FF802E16

View file

@ -21,7 +21,7 @@ for new_relay in relays:
eol = "no" eol = "no"
contact = "" contact = ""
if "contact" in new_relay: if "contact" in new_relay:
test = re.search("([a-zA-Z0-9_.+-]+(\[\]|\@|at)[a-zA-Z0-9-.]+\.[a-zA-Z0-9-.]+)", new_relay["contact"], re.IGNORECASE) test = re.search("(([a-z0-9-._+\(\) ])+([\[\]\(\)\@]|at)+((?!example)[a-z0-9-. ])+(\.|dot *)[a-z0-9_.]+)", new_relay["contact"], re.IGNORECASE)
if test: if test:
contact = ", contact: " + test.group(1) contact = ", contact: " + test.group(1)
if not re.search("0.3.5|0.4.5|0.4.6|0.4.7", new_relay["platform"], re.IGNORECASE): if not re.search("0.3.5|0.4.5|0.4.6|0.4.7", new_relay["platform"], re.IGNORECASE):