Преглед на файлове

/providers: country name sanitizing captures abbreviations, too

Helge Jung преди 9 години
родител
ревизия
7114c3a7cd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ffstatus/server.py

+ 1 - 1
ffstatus/server.py

@@ -500,7 +500,7 @@ class BatcaveHttpRequestHandler(BaseHTTPRequestHandler):
 					isp = re.sub(r'(B2B )?(aggregate|aggregation)?$', '', isp, 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)$', '', isp, flags=re.IGNORECASE)
+					isp = re.sub(r'(DE|Deutschland|Germany|Nordrhein[- ]Westfalen|NRW|Baden[- ]Wuerttemburg|BW|Hessen|Niedersachsen|Rheinland[- ]Pfalz|RLP)$', '', isp, flags=re.IGNORECASE)
 
 				item_isps.add(isp)