vh13294 / nestjs-url-generator

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

Fix matching params in url with words between them #2

Closed Tomas2D closed 4 years ago

Tomas2D commented 4 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 4 years ago

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