Skip to content

Commit 0b218f2

Browse files
committed
Tweak scheme comparison.
1 parent 6005814 commit 0b218f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/model/uri.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def parse(value)
874874
if matchdata = IRI_PARTS.match(value)
875875
scheme, authority, path, query, fragment = matchdata[1..-1]
876876

877-
if Gem.win_platform? && scheme.match?(/^[a-zA-Z]$/) && authority.to_s.empty?
877+
if Gem.win_platform? && scheme && !authority && scheme.match?(/^[a-zA-Z]$/)
878878
# A drive letter, not a scheme
879879
scheme, path = nil, "#{scheme}:#{path}"
880880
end

0 commit comments

Comments
 (0)