From 63805c4b2f3fdb76786c85ae343e245545c9aeb9 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 9 Feb 2022 15:02:06 -0500 Subject: [PATCH] Sanity check that uri is possibly valid --- lib/customer_fwd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/customer_fwd.rb b/lib/customer_fwd.rb index 4a6f4350ed7df0ed3af030cf91423b7386245f21..fbf33631b8d7f2b697d988215b8609d22a5450e0 100644 --- a/lib/customer_fwd.rb +++ b/lib/customer_fwd.rb @@ -40,7 +40,7 @@ class CustomerFwd end value_semantics do - uri Either(String, NilClass) + uri Either(/:/, NilClass) def_attr :timeout, Timeout, coerce: Timeout.method(:new) end