path-to-regexp
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"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" |
13
test.js
@@ -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 @@ ]; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29324
924
0