Skip to content

Commit

Permalink
Merge pull request #97 from y-yagi/fix-uri-regexp
Browse files Browse the repository at this point in the history
Don't use obsoleted `URI.regexp`
  • Loading branch information
nov authored Oct 15, 2024
2 parents 7d53b79 + 0daa5da commit edb1b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openid_connect/client/registrar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def sector_identifier_required?

def valid_uri?(uri, schemes = ['http', 'https'])
# NOTE: specify nil for schemes to allow any schemes
URI::regexp(schemes).match(uri).present?
URI::DEFAULT_PARSER.make_regexp(schemes).match(uri).present?
end

def validate_contacts
Expand Down

0 comments on commit edb1b9e

Please sign in to comment.