From d75be0c6ea1827479396a22fbc7a616088611879 Mon Sep 17 00:00:00 2001 From: root21 Date: Mon, 30 Jan 2023 15:28:15 -0600 Subject: [PATCH] Added 'C' to the regex on outgoing calls This prepares the system for prepending customer IDs with 'c'. --- web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web.rb b/web.rb index 0bb579d262aa8f6ed363d0a6d7a78c1dec23d21b..826c6824627524a21fee0c434613a0710f1df3a5 100644 --- a/web.rb +++ b/web.rb @@ -365,7 +365,7 @@ class Web < Roda end r.post do - from = params["from"].sub(/^\+1/, "") + from = params["from"].sub(/^(?:\+1|c/), "") customer_repo( sgx_repo: Bwmsgsv2Repo.new ).find_by_format(from).then { |c|