Skip to content

Commit

Permalink
Fix typo in IRI grammar
Browse files Browse the repository at this point in the history
Typo `A-z` allows matches for a wide range of invalid schemes, including
common blank node id formats like `"_:123"`.
  • Loading branch information
Tom Johnson committed Aug 16, 2016
1 parent 8316d4a commit 66ceaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/model/uri.rb
Expand Up @@ -42,7 +42,7 @@ class URI
[\\u{D0000}-\\u{DFFFD}]|[\\u{E1000}-\\u{EFFFD}]
EOS
IPRIVATE = Regexp.compile("[\\uE000-\\uF8FF]|[\\u{F0000}-\\u{FFFFD}]|[\\u100000-\\u10FFFD]").freeze
SCHEME = Regexp.compile("[A-za-z](?:[A-Za-z0-9+-\.])*").freeze
SCHEME = Regexp.compile("[A-Za-z](?:[A-Za-z0-9+-\.])*").freeze
PORT = Regexp.compile("[0-9]*").freeze
IP_literal = Regexp.compile("\\[[0-9A-Fa-f:\\.]*\\]").freeze # Simplified, no IPvFuture
PCT_ENCODED = Regexp.compile("%[0-9A-Fa-f][0-9A-Fa-f]").freeze
Expand Down

0 comments on commit 66ceaa1

Please sign in to comment.