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 Aug 4, 2024
1 parent 2a94ae5 commit 8f18758
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 8f18758

Please sign in to comment.