Closed tomnoir closed 2 months ago
The regex to extract the domain part of the URL seems to miss domain parts if there are several (e.g. subdomain):
https://github.com/shopware/k6-shopware/blob/3a3fc0e0e545ecfffd26f0e6f133a8e3b427863e/helpers/util.js#L37
An improved regex could be /(https?:\/\/(?:[\w-]+\.)+[\w-]+(?::\d+)?)/g
/(https?:\/\/(?:[\w-]+\.)+[\w-]+(?::\d+)?)/g
Otherwise thanks to everybody for the amazing K6 scenario!
Your regex does not match just localhost :)
Oh you're right 🙈
Thanks for the quick fix!
The regex to extract the domain part of the URL seems to miss domain parts if there are several (e.g. subdomain):
https://github.com/shopware/k6-shopware/blob/3a3fc0e0e545ecfffd26f0e6f133a8e3b427863e/helpers/util.js#L37
An improved regex could be
/(https?:\/\/(?:[\w-]+\.)+[\w-]+(?::\d+)?)/g
Otherwise thanks to everybody for the amazing K6 scenario!