|
@@ -488,6 +488,12 @@ class BatcaveHttpRequestHandler(BaseHTTPRequestHandler):
|
|
|
#isp = name_parts[0] + ' (' + desc_lines[0] + ')'
|
|
|
isp = desc_lines[0]
|
|
|
|
|
|
+ # normalize name: strip company indication
|
|
|
+ isp = re.sub(r'(AG|UG|G?mbH( ?& ?Co\.? ?(OH|K)G)?)$', '', isp, flags=re.IGNORECASE)
|
|
|
+
|
|
|
+ # normalize name: strip "pool" suffixes
|
|
|
+ isp = re.sub(r'(dynamic )?(customer |subscriber )?(ip )?(pool|(address )?range|addresses)$', '', isp, flags=re.IGNORECASE)
|
|
|
+
|
|
|
item_isps.add(isp)
|
|
|
|
|
|
if len(item_isps) == 0:
|