path-to-regexp icon indicating copy to clipboard operation
path-to-regexp copied to clipboard

Turn a path string such as `/user/:name` into a regular expression

Results 45 path-to-regexp issues
Sort by recently updated
recently updated
newest added

This PR adds node versions from 17 to 22 to the CI so the tests are run for all the different nodejs versions apart from version 16.

Hello everyone! I would like to add an option to the `pathToRegexp` to capture named groups. I searched for previous issues, as this is likely to have come up before...

As of path-to-regexp 7, parameters to compile should be strings. compileToken's types reflect this, but compile's did not.

I got error messages like `TypeError: Missing parameter name at 3: https://git.new/pathToRegexpError` and I was wondering how that weird url made it's way into my code Two suggestions: 1. It...

This is an attempt to return the functionality to build a routers tree for express app. Developers can replace `layer.regexp` by `layer.matchers[0].regexp` in original code from @dougwilson https://github.com/expressjs/express/discussions/5858#discussioncomment-10436717 https://github.com/expressjs/express/discussions/5961

Bumps [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) from 7.3.12 to 7.7.0. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/semver&package-manager=npm_and_yarn&previous-version=7.3.12&new-version=7.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies
javascript

I'm planning to move to the newer version of path-to-regexp. In our codebase heavily relies on regex for parameter validation, especially in some legacy components we still have running in...

In versions < 8 it was possible to customize the parameter match using a regex. For example, `:param(a|b|c)`. While this is immensely helpful for end users, it created a security...

It comes up often that people want to be able to exclude a route from matching: https://github.com/pillarjs/path-to-regexp/issues/378, https://github.com/pillarjs/path-to-regexp/issues/268, https://github.com/pillarjs/path-to-regexp/issues/252, https://github.com/pillarjs/path-to-regexp/issues/99, and more. With the removal of direct regex input in...

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 3.0.5 to 3.2.1. Release notes Sourced from vitest's releases. v3.2.1    🐞 Bug Fixes Use sha1 instead of md5 for hashing  -  by @​sheremet-va (e4c73) expect: Fix chai...

dependencies
javascript