Socket
Socket
Sign inDemoInstall

path-to-regexp

Package Overview
Dependencies
Maintainers
26
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-to-regexp - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

component.json
{
"name": "path-to-regexp",
"description": "Express style path to RegExp utility",
"version": "0.2.0",
"version": "0.2.1",
"keywords": [

@@ -6,0 +6,0 @@ "express",

@@ -0,1 +1,6 @@

0.2.1 / 2014-06-11
==================
* Fixed a major capturing group regexp regression
0.2.0 / 2014-06-09

@@ -2,0 +7,0 @@ ==================

@@ -16,3 +16,3 @@ /**

// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined]
'([\\/.])?(?:\\:(\\w+)(?:\\((.+)\\))?|\\((.+)\\))([+*?])?',
'([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?',
// Match regexp special characters that should always be escaped.

@@ -19,0 +19,0 @@ '([.+*?=^!:${}()[\\]|\\/])'

{
"name": "path-to-regexp",
"description": "Express style path to RegExp utility",
"version": "0.2.0",
"version": "0.2.1",
"scripts": {

@@ -6,0 +6,0 @@ "test": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec"

@@ -767,2 +767,15 @@ var util = require('util');

['/.+*?=^!:${}[]|']
],
/**
* Regressions.
*/
[
'/:remote([\\w-.]+)/:user([\\w-]+)',
[
{ name: 'remote', delimiter: '/', optional: false, repeat: false },
{ name: 'user', delimiter: '/', optional: false, repeat: false }
],
'/endpoint/user',
['/endpoint/user', 'endpoint', 'user']
]

@@ -769,0 +782,0 @@ ];

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc