79466185

Date: 2025-02-25 10:35:46
Score: 1.5
Natty:
Report link

A simple way is to maintain a list of valid cities and then check if your item()?['City'] exists in this list. You can continue to add more cities or even have it read dynamically from some data source.

here's a simple demonstration

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Laviza Falak Naz