Commit 1d90ed6

mo khan <mo@mokhan.ca>
2024-12-06 00:21:36
fix: convert variable to string
1 parent a200612
Changed files (1)
lib
scim
lib/scim/kit/v2.rb
@@ -68,7 +68,7 @@ module Scim
             false
           end
         },
-        reference: ->(x) { x =~ /\A#{URI::DEFAULT_PARSER.make_regexp(%w[http https])}\z/ },
+        reference: ->(x) { x&.to_s =~ /\A#{URI::DEFAULT_PARSER.make_regexp(%w[http https])}\z/ },
         string: ->(x) { x.is_a?(String) }
       }.freeze