Skip to content

v0.4.1

Choose a tag to compare

@themgoncalves themgoncalves released this 09 Jun 09:06
· 6 commits to main since this release

@cookbook/pathkit

0.4.1

Patch Changes

  • db577c1: Improve regex constraint normalization when generating route match patterns.

    The regex constraint now removes wrapping ^ and unescaped trailing $ anchors from the provided regex source before composing the final route matcher.

    Examples:

    /posts/{slug:regex(^[a-z0-9-]+$)}
    /posts/{slug:regex([a-z0-9-]+)}