Open bhollis opened 10 years ago
There seems to be a problem using :colon mode where it will encode dashes:
:colon
# With colons: x = URITemplate.new(:colon, '/:year-:month-:day-:title.html') x.expand(year: '2010', month: '01', day: '01', title: "foo-bar") => "/2010%2D01%2D01%2Dfoo-bar.html" # With braces: x = URITemplate.new('/{year}-{month}-{day}-{title}.html') x.expand(year: '2010', month: '01', day: '01', title: "foo-bar") => "/2010-01-01-foo-bar.html"
There seems to be a problem using
:colon
mode where it will encode dashes: