diff --git a/web.rb b/web.rb index 826c6824627524a21fee0c434613a0710f1df3a5..ff12e696967411dfcbdadf52ee7460679057011f 100644 --- a/web.rb +++ b/web.rb @@ -365,7 +365,8 @@ class Web < Roda end r.post do - from = params["from"].sub(/^(?:\+1|c/), "") + from = params["from"].sub(/^(?:\+|c)/, "") + from = from.sub(/^1/, "") if from.length > 10 customer_repo( sgx_repo: Bwmsgsv2Repo.new ).find_by_format(from).then { |c|