sandulat / routes-gen

Framework agnostic routes typings generator. Remix ☑️ SolidStart ☑️
MIT License
283 stars 12 forks source link

escaped sequences not mapped correctly #39

Open lifeiscontent opened 1 year ago

lifeiscontent commented 1 year ago

Describe the bug

I have a route called contacts.$id[.vcard].tsx

the route string is properly generated by the routes.d.ts but the runtime handling of it is invalid.

the produced URL of the route function looks as follows:

route('/contacts/:id.vcard', {
  id: '1',
})

and the output looks like this:

/contacts/:id.vcard

where :id should be replaced with the actual parameter

Your Example Website or App

N/A

Steps to Reproduce the Bug or Issue

outlined above

Expected behavior

I'd expect the correct runtime value

Screenshots or Videos

No response

Platform

N/A

Additional context

No response