Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Aug 18, 2023
1 parent d374b8c commit c401bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/app/app/models/routing_parameters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def address

def format_number(value)
result = value.gsub(/\D/, "")
result = national_dialing && Phony.plausible?(result) ? Phony.format(result, format: :national, spaces: "") : result
result = Phony.format(result, format: :national, spaces: "") if national_dialing && Phony.plausible?(result)
result.gsub(/\D/, "")
end

Expand Down

0 comments on commit c401bde

Please sign in to comment.