We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40edbf commit 455c2f5Copy full SHA for 455c2f5
1 file changed
lib/onelogin/ruby-saml/attributes.rb
@@ -124,7 +124,7 @@ def ==(other)
124
def fetch(name)
125
attributes.each_key do |attribute_key|
126
if name.is_a?(Regexp)
127
- if name.method_exists? :match?
+ if name.respond_to? :match?
128
return self[attribute_key] if name.match?(attribute_key)
129
else
130
return self[attribute_key] if name.match(attribute_key)
0 commit comments