diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 5d035911b1353d518180800166a4ec19372f7567..c61c65571b5823235ff49161278d9af5e4c06311 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -1050,7 +1050,7 @@ Command.new( "https://ns.cheogram.com/sgx/jid-switch", "Change JID", list_for: lambda { |customer: nil, from_jid: nil, **| - customer || from_jid.to_s =~ /onboarding.cheogram.com/ + customer || from_jid.to_s =~ Regexp.new(CONFIG[:onboarding_domain]) }, customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new) ) {