VyLala commited on
Commit
3050abe
·
verified ·
1 Parent(s): 81e4fd7

Update standardize_location.py

Browse files
Files changed (1) hide show
  1. standardize_location.py +1 -1
standardize_location.py CHANGED
@@ -51,7 +51,7 @@ def get_country_from_countryinfo(input_code):
51
  def smart_country_lookup(user_input):
52
  raw_input = user_input.strip()
53
  normalized = re.sub(r"[^a-zA-Z0-9]", "", user_input).upper() # normalize for codes (no strip spaces!)
54
-
55
  # Special case: if user writes "UK: London" → split and take main country part
56
  if ":" in raw_input:
57
  raw_input = raw_input.split(":")[0].strip() # only take "UK"
 
51
  def smart_country_lookup(user_input):
52
  raw_input = user_input.strip()
53
  normalized = re.sub(r"[^a-zA-Z0-9]", "", user_input).upper() # normalize for codes (no strip spaces!)
54
+ print(raw_input, normalized)
55
  # Special case: if user writes "UK: London" → split and take main country part
56
  if ":" in raw_input:
57
  raw_input = raw_input.split(":")[0].strip() # only take "UK"