Sha256: 17ade2ab51f87a4b2aabf0339c90285b548f77bd93e2142c62d7cc5aae9c9c4d
Contents?: true
Size: 225 Bytes
Versions: 4
Compression:
Stored size: 225 Bytes
Contents
# frozen_string_literal: true module Helpers module Protocols module_function def extract_mpoa(str) /((?<=sip:))?(?<number>\d+)(?=@|\d*)/ =~ str number.nil? ? str : '+' + number.to_s end end end
Version data entries
4 entries across 4 versions & 1 rubygems