|
@@ -496,6 +496,12 @@ class BatcaveHttpRequestHandler(BaseHTTPRequestHandler):
|
|
|
# normalize name: strip "pool" suffixes
|
|
|
isp = re.sub(r'(dynamic )?(customer |subscriber )?(ip )?(pool|(address )?range|addresses)$', '', isp, flags=re.IGNORECASE)
|
|
|
|
|
|
+ # normalize name: strip "B2B" and aggregation suffixes
|
|
|
+ isp = re.sub(r'(B2B )?(aggregate|aggregation)?$', '', flags=re.IGNORECASE)
|
|
|
+
|
|
|
+ # normalize name: strip country suffixes (in Germany)
|
|
|
+ isp = re.sub(r'(DE|Deutschland|Germany|Nordrhein[- ]Westfalen|Baden[- ]Wuerttemburg|Hessen|Niedersachsen|Rheinland[- ]Pfalz)$', '', flags=re.IGNORECASE)
|
|
|
+
|
|
|
item_isps.add(isp)
|
|
|
|
|
|
if len(item_isps) == 0:
|