Path To Regexp Versions Save

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

v4.0.2

4 years ago

Fixed

  • Allow RegexpOptions in match(...) function

v4.0.1

4 years ago

Fixed

  • Normalize regexp spelling across 4.x

v4.0.0

4 years ago

All path rules are backward compatible with 3.x, except for nested () and other RegEx special characters that were previously ignored.

Changed

  • Export names have changed to support ES2015 modules in bundlers
  • match does not default to decodeURIComponent

Added

  • New normalizePathname utility for supporting unicode paths in libraries
  • Support nested non-capturing groups within parameters
  • Add tree-shaking (via ES2015 modules) for webpack and other bundlers

v3.2.0

4 years ago

Added

  • Add native match function to library

v1.8.0

4 years ago

Added

  • Backport TokensToFunctionOptions

v3.1.0

4 years ago
  • Add sensitive option for tokensToFunction (#191)
  • Add validate option to path functions (#178)