path-parser
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -0,1 +1,11 @@ | ||
<a name="4.0.5"></a> | ||
## [4.0.5](https://github.com/troch/path-parser/compare/v4.0.4...v4.0.5) (2018-05-14) | ||
### Bug Fixes | ||
* allow equal signs in parameters (commonly found at the end of base 64 encoded strings) ([5c98fb6](https://github.com/troch/path-parser/commit/5c98fb6)) | ||
<a name="4.0.4"></a> | ||
@@ -2,0 +12,0 @@ ## [4.0.4](https://github.com/troch/path-parser/compare/v4.0.3...v4.0.4) (2018-04-09) |
@@ -31,3 +31,5 @@ 'use strict'; | ||
var defaultOrConstrained = function (match) { | ||
return '(' + (match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|]+") + ')'; | ||
return '(' + | ||
(match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|=]+") + | ||
')'; | ||
}; | ||
@@ -34,0 +36,0 @@ var rules = [ |
@@ -27,3 +27,5 @@ import { build, parse } from 'search-params'; | ||
var defaultOrConstrained = function (match) { | ||
return '(' + (match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|]+") + ')'; | ||
return '(' + | ||
(match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|=]+") + | ||
')'; | ||
}; | ||
@@ -30,0 +32,0 @@ var rules = [ |
{ | ||
"name": "path-parser", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "A small utility to parse, match and generate paths", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/path-parser.js", |
@@ -15,2 +15,4 @@ [![npm version](https://badge.fury.io/js/path-parser.svg)](http://badge.fury.io/js/path-parser) | ||
import Path from 'path-parser' | ||
// or | ||
const Path = require('path-parser').default | ||
@@ -17,0 +19,0 @@ const path = new Path('/users/:id') |
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
151850
646
104