Skip to content

Commit edb1b9e

Browse files
authored
Merge pull request #97 from y-yagi/fix-uri-regexp
Don't use obsoleted `URI.regexp`
2 parents 7d53b79 + 0daa5da commit edb1b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openid_connect/client/registrar.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def sector_identifier_required?
118118

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

124124
def validate_contacts

0 commit comments

Comments
 (0)