Allow lowercase state/province abbreviations

Stephen Paul Weber created

Seems like it won't overlap with other things we allow.

Change summary

lib/tel_selections.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

lib/tel_selections.rb 🔗

@@ -187,7 +187,7 @@ class TelSelections
 			end
 
 			class CityState
-				Q.register(/\A([^,]+)\s*,\s*([A-Z]{2})\Z/, &method(:new))
+				Q.register(/\A([^,]+)\s*,\s*([a-zA-Z]{2})\Z/, &method(:new))
 
 				CITY_MAP = {
 					"ajax" => "Ajax-Pickering",
@@ -208,7 +208,7 @@ class TelSelections
 
 				def initialize(city, state)
 					@city = CITY_MAP.fetch(city.downcase, city)
-					@state = STATE_MAP.fetch(state, state)
+					@state = STATE_MAP.fetch(state.upcase, state.upcase)
 				end
 
 				def iris_query