From d957d31266d484572db7139b19e1f95c929c0ec7 Mon Sep 17 00:00:00 2001 From: Sonal Date: Sat, 7 Jun 2025 00:40:14 +0530 Subject: [PATCH] Fix: normalize lowercase ISO codes in NetSuite::Support::Country --- lib/netsuite/support/country.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netsuite/support/country.rb b/lib/netsuite/support/country.rb index ab576353c..bdf652be1 100644 --- a/lib/netsuite/support/country.rb +++ b/lib/netsuite/support/country.rb @@ -259,7 +259,7 @@ class Country } def initialize(iso_or_name = '') - if iso_or_name =~ /^[A-Z]{2}/ + if iso_or_name.to_s.upcase =~ /^[A-Z]{2}/ @id = iso_to_netsuite.fetch(iso_or_name) else @id = iso_or_name