slanatech / swagger-stats

API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
https://swaggerstats.io/
MIT License
886 stars 136 forks source link

Error on routes with wildcards #275

Open jnm733 opened 10 months ago

jnm733 commented 10 months ago

When we have routes with wildcards, the swsApiStats.js return an error on line 168

Unexpected MODIFIER at 28, expected END

Adding that line the error disappear:

fullExpressPath = fullExpressPath.replace(/*/g, '');