diff --git a/parse.go b/parse.go index 08027db..fd38a68 100644 --- a/parse.go +++ b/parse.go @@ -39,8 +39,7 @@ var ( R16: []unicode.Range16{ {Lo: 0x0021, Hi: 0x0021, Stride: 1}, // '!' {Lo: 0x0023, Hi: 0x0024, Stride: 1}, // '#' - '$' - {Lo: 0x0026, Hi: 0x0026, Stride: 1}, // '&' - {Lo: 0x0028, Hi: 0x003B, Stride: 1}, // '(' - ';' + {Lo: 0x0026, Hi: 0x003B, Stride: 1}, // '&' ''' '(' - ';'. '''/27 used to be excluded but an errata is in the review process https://www.rfc-editor.org/errata/eid6937 {Lo: 0x003D, Hi: 0x003D, Stride: 1}, // '=' {Lo: 0x003F, Hi: 0x005B, Stride: 1}, // '?' - '[' {Lo: 0x005D, Hi: 0x005D, Stride: 1}, // ']' diff --git a/uritemplate_test.go b/uritemplate_test.go index 54bacb0..630107f 100644 --- a/uritemplate_test.go +++ b/uritemplate_test.go @@ -47,6 +47,8 @@ var ( }{ // below cases are quoted from the RFC // http://tools.ietf.org/html/rfc6570 + // § 2.1 + {"'{count}'", "'one,two,three'", false}, // § 3.2.1 {"{count}", "one,two,three", false}, {"{count*}", "one,two,three", false},