Closed original001 closed 6 years ago
test case new Path('/settings/:id').test('/settings/1111@1111') expect match with { id: '1111@1111' } actual null
new Path('/settings/:id').test('/settings/1111@1111')
{ id: '1111@1111' }
resolved by adding [a-zA-Z0-9-_.~%':|=+\\*@]+ in every parameter
test case
new Path('/settings/:id').test('/settings/1111@1111')
expect match with{ id: '1111@1111' }
actual null