rdf-ext / rdf-parser-csvw

CSV on the Web parser
MIT License
16 stars 4 forks source link

Encode URI templates according to spec #41

Open tpluscode opened 2 years ago

tpluscode commented 2 years ago

I found that templates were incorrectly produced, cells being not fully encoded as per RFC3986.

For example, parentheses were not percent-encoded, likely being done by JS' flawed implementation of encodeURIComponent

This PR switches to a different implementation of the RFC6570 spec which does the encoding correctly.