|
@@ -495,13 +495,13 @@ class BatcaveHttpRequestHandler(BaseHTTPRequestHandler):
|
|
|
isp = re.sub(r'(AG|UG|G?mbH( ?& ?Co\.? ?(OH|K)G)?)\s*$', '', isp, flags=re.IGNORECASE)
|
|
|
|
|
|
# normalize name: strip "pool" suffixes
|
|
|
- isp = re.sub(r'(dynamic )?(customer |subscriber )?(ip )?(pool|(address )?range|addresses)$\s*', '', isp, flags=re.IGNORECASE)
|
|
|
+ isp = re.sub(r'(dynamic )?(customer |subscriber )?(ip )?(pool|(address )?range|addresses)\s*$', '', isp, flags=re.IGNORECASE)
|
|
|
|
|
|
# normalize name: strip "B2B" and aggregation suffixes
|
|
|
- isp = re.sub(r'(B2B )?(aggregate|aggregation)?$\s*', '', isp, flags=re.IGNORECASE)
|
|
|
+ isp = re.sub(r'(B2B )?(aggregate|aggregation)?\s*$', '', isp, flags=re.IGNORECASE)
|
|
|
|
|
|
# normalize name: strip country suffixes (in Germany)
|
|
|
- isp = re.sub(r'(DE|Deutschland|Germany|Nordrhein[- ]Westfalen|NRW|Baden[- ]Wuerttemburg|BW|Hessen|Niedersachsen|Rheinland[- ]Pfalz|RLP)$\s*', '', isp, flags=re.IGNORECASE)
|
|
|
+ isp = re.sub(r'(DE|Deutschland|Germany|Nordrhein[- ]Westfalen|NRW|Baden[- ]Wuerttemburg|BW|Hessen|Niedersachsen|Rheinland[- ]Pfalz|RLP)\s*$', '', isp, flags=re.IGNORECASE)
|
|
|
|
|
|
item_isps.add(isp)
|
|
|
|