Skip to content

Commit

Permalink
simplify and test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Jun 27, 2024
1 parent 57a8293 commit a4d09c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hdx/location/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def clean_name(name: str) -> str:
chars.append(x)
elif 65 <= ordch < 91:
chars.append(chr(ordch + 32))
else:
elif ordch < 32 or ordch >= 127:
continue
else:
chars.append(x)
return "".join(chars).strip()

0 comments on commit a4d09c4

Please sign in to comment.