diff options
| author | mo khan <mo@mokhan.ca> | 2024-12-05 17:21:36 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-12-05 17:21:36 -0700 |
| commit | 1d90ed684236451eae7e18fb4e33f65d5b711515 (patch) | |
| tree | 30f009c683bdcaadee1abfe74a12e7d91f69e5fd | |
| parent | a200612adb7de9866f7e55270cfadbc00392fa55 (diff) | |
fix: convert variable to string
| -rw-r--r-- | lib/scim/kit/v2.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scim/kit/v2.rb b/lib/scim/kit/v2.rb index db0ced3..a29cbdd 100644 --- a/lib/scim/kit/v2.rb +++ b/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 |
