vh13294 / nestjs-url-generator

Dynamically generating & signing URL based on controller method reference.
MIT License
44 stars 16 forks source link

Fix matching params in url with words between them #2

Closed Tomas2D closed 3 years ago

Tomas2D commented 3 years ago

Hello, firstly I would like to thank you for this great library.

My pull request fix problem in checking if params are inside URL.

For example: country/:id/location/:locationId will fail due to splitting only by /: (resulting routeParts variable is ['country', 'id/location', 'locationId' ].

vh13294 commented 3 years ago

Thanks for the contribution. I have published this to npm.