Skip to content

Commit

Permalink
Make sure argument to URI.intern is a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jul 9, 2024
1 parent 13164ed commit 01cd7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/model/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def self.cache
# (see #initialize)
# @return [RDF::URI] an immutable, frozen URI object
def self.intern(str, *args, **options)
(cache[(str = str.to_s).to_sym] ||= self.new(str, *args, **options)).freeze
(cache[(str = str.to_s).to_sym] ||= self.new(str.to_s, *args, **options)).freeze
end

##
Expand Down

0 comments on commit 01cd7b6

Please sign in to comment.