lib/sxp/reader/sparql.rb in sxp-0.0.9 vs lib/sxp/reader/sparql.rb in sxp-0.0.10
- old
+ new
@@ -44,10 +44,11 @@
##
# @return [RDF::URI]
def read_rdf_uri
buffer = String.new
skip_char # '<'
- return :< if (char = peek_char).nil? || char.chr !~ ATOM # FIXME: nasty special case for '< symbol
+ return :< if (char = peek_char).nil? || char.chr !~ ATOM # FIXME: nasty special case for the '< symbol
+ return :<= if peek_char.chr.eql?(?=) && read_char # FIXME: nasty special case for the '<= symbol
until peek_char == ?>
buffer << read_char # TODO: unescaping
end
skip_char # '>'
RDF::URI(buffer)