troch / path-parser

A small utility to parse paths.
MIT License
140 stars 24 forks source link

does not match url parameter with @ symbol #26

Closed original001 closed 6 years ago

original001 commented 6 years ago

test case new Path('/settings/:id').test('/settings/1111@1111') expect match with { id: '1111@1111' } actual null

original001 commented 6 years ago

resolved by adding [a-zA-Z0-9-_.~%':|=+\\*@]+ in every parameter