import: the other kind of number is a number
Contacts had one more spelling to tell,
type=OTHER beside type=VOICE as well.
The allowlist takes it, the number comes through
untyped like every other kind does too.
Assisted-by: Claude Opus 5 via Claude Code
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
diff --git a/lib/pro_tacts/import/macos.rb b/lib/pro_tacts/import/macos.rb
index e71bab7..04a4f03 100644
--- a/lib/pro_tacts/import/macos.rb
+++ b/lib/pro_tacts/import/macos.rb
@@ -324,6 +324,7 @@ module ProTacts
"TEL;type=HOME;type=VOICE",
"TEL;type=IPHONE;type=CELL;type=VOICE",
"TEL;type=MAIN",
+ "TEL;type=OTHER;type=VOICE",
"TEL;type=WORK;type=VOICE",
"item#.TEL"
],
diff --git a/test/pro_tacts/import/test_macos.rb b/test/pro_tacts/import/test_macos.rb
index c61adf3..b878408 100644
--- a/test/pro_tacts/import/test_macos.rb
+++ b/test/pro_tacts/import/test_macos.rb
@@ -265,11 +265,13 @@ class ImportMacosTest < Minitest::Test
"TEL;type=pref:+1 203-536-3941",
"TEL;type=HOME;type=VOICE;type=pref:(206) 651-4359",
"TEL;type=IPHONE;type=CELL;type=VOICE:",
- "TEL;type=CELL;type=VOICE:+12532189075"
+ "TEL;type=CELL;type=VOICE:+12532189075",
+ "TEL;type=OTHER;type=VOICE:+1 (425) 707-1712"
]
plan = Macos.plan(dir, [record("A:ABPerson", lines:)], created_at: CREATED_AT)
- assert_equal [{"number" => "+1 203-536-3941"}, {"number" => "(206) 651-4359"}, {"number" => "+12532189075"}], plan.card(plan.contacts.first.id).phones
+ assert_equal [{"number" => "+1 203-536-3941"}, {"number" => "(206) 651-4359"}, {"number" => "+12532189075"},
+ {"number" => "+1 (425) 707-1712"}], plan.card(plan.contacts.first.id).phones
end
end