1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-18 05:49:47 +00:00
الملفات
postal/lib/postal/helpers.rb
2024-02-10 17:18:23 +00:00

14 أسطر
234 B
Ruby

# frozen_string_literal: true
module Postal
module Helpers
def self.strip_name_from_address(address)
return nil if address.nil?
address.gsub(/.*</, "").gsub(/>.*/, "").gsub(/\(.+?\)/, "").strip
end
end
end