orval icon indicating copy to clipboard operation
orval copied to clipboard

Use better regex for route parameters

Open Maxim-Mazurok opened this issue 7 months ago • 0 comments

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.

Maxim-Mazurok avatar Dec 01 '23 00:12 Maxim-Mazurok