orval
orval copied to clipboard
Use better regex for route parameters
As mentioned in https://github.com/anymaniax/orval/pull/895#discussion_r1411445906, we need to use /\${(.+?)}/g
instead of /\${(\w+)}/g
in TEMPLATE_TAG_REGEX
.
Also, export it and reuse in wrapRouteParameters
to avoid code duplication.