path-to-regex
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -169,3 +169,5 @@ module.exports = Regex; | ||
// console.log("Regex.match 03", result); | ||
if(result.groups) | ||
return result.groups; | ||
const data = {}; | ||
@@ -211,2 +213,3 @@ this.keys.forEach(item=>{ | ||
}); | ||
return data; | ||
@@ -213,0 +216,0 @@ |
{ | ||
"name": "path-to-regex", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Turn a path string such as /user/:id or /user/:id(\\d+) into a regular expression", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ # path-to-regex | ||
var matcher = new pathToRegex(path_template, options?); | ||
var parser = new pathToRegex(path_template, options?); | ||
``` | ||
@@ -81,2 +81,3 @@ | ||
#### But it does not capture parts of the path that are clearly indicated. | ||
```javascript | ||
@@ -282,3 +283,10 @@ let parser = new pathToRegex('/:path(.*)'); | ||
## Participation in development | ||
``` | ||
https://github.com/lastuniverse/path-to-regex/issues | ||
``` | ||
## License | ||
MIT | ||
[![NPM](https://nodei.co/npm/path-to-regex.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/path-to-regex/) | ||
@@ -285,0 +293,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23599
270
298