Added 'C' to the regex on outgoing calls

root21 created

This prepares the system for prepending customer IDs with 'c'.

Change summary

web.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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|