{"action":"closed","issue":{"url":"https://api.github.com/repos/ruby-rdf/rdf/issues/319","repository_url":"https://api.github.com/repos/ruby-rdf/rdf","labels_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/319/comments","events_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/319/events","html_url":"https://github.com/ruby-rdf/rdf/issues/319","id":171520156,"number":319,"title":"RDF::URI validation incorrectly matches RDF::Nodes","user":{"login":"mjsuhonos","id":142849,"avatar_url":"https://avatars.githubusercontent.com/u/142849?v=3","gravatar_id":"","url":"https://api.github.com/users/mjsuhonos","html_url":"https://github.com/mjsuhonos","followers_url":"https://api.github.com/users/mjsuhonos/followers","following_url":"https://api.github.com/users/mjsuhonos/following{/other_user}","gists_url":"https://api.github.com/users/mjsuhonos/gists{/gist_id}","starred_url":"https://api.github.com/users/mjsuhonos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjsuhonos/subscriptions","organizations_url":"https://api.github.com/users/mjsuhonos/orgs","repos_url":"https://api.github.com/users/mjsuhonos/repos","events_url":"https://api.github.com/users/mjsuhonos/events{/privacy}","received_events_url":"https://api.github.com/users/mjsuhonos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-16T21:16:46Z","updated_at":"2016-08-16T22:01:22Z","closed_at":"2016-08-16T22:01:22Z","body":"Consider e.g.\r\n```ruby\r\nRDF::URI.new(RDF::Node.new).valid?\r\n=> #<MatchData \"_:g70365175636340\" 1:nil>\r\n```\r\n\r\nAccording to IRI validation rules the scheme part of `\"_:g70365175636340\"` should be invalid, i.e.\r\n```\r\nscheme         = ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\r\n```\r\n\r\n@no_reply has suggested the issue may be the scheme grammar regex:\r\n```ruby\r\nRegexp.compile(\"[A-za-z](?:[A-Za-z0-9+-\\.])*\").match '_:'\r\n=> #<MatchData \"_\">\r\n```\r\nvs.\r\n```ruby\r\nRegexp.compile(\"[A-za-z](?:[A-Za-z0-9+-\\.])+\").match '_:'\r\n=> nil\r\n```\r\n\r\nIs this a straightforward fix, or can someone with strong regex chops verify the implementation of the IETF syntax?"}}
{"actor":{"display_login":"gkellogg"}}