From 1f201bd490ad9dd98b947548c95bf96549b332e1 Mon Sep 17 00:00:00 2001 From: Hygna Date: Sun, 25 Sep 2022 17:33:54 +0100 Subject: [PATCH] Updated quetre & libremdb regex --- src/instances/get_instances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 250dd25..28ffed5 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -326,7 +326,7 @@ def quetre(): _list['loki'] = [] tmp = re.findall( - r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text) + r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text) for item in tmp: @@ -348,7 +348,7 @@ def libremdb(): _list['loki'] = [] tmp = re.findall( - r"\| ([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)*\|*[A-Z]{0,}.*\|.*\|", r.text) + r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text) for item in tmp: