path-parser
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,11 @@ | ||
<a name="4.0.1"></a> | ||
## [4.0.1](https://github.com/troch/path-parser/compare/v4.0.0...v4.0.1) (2018-03-26) | ||
### Bug Fixes | ||
* fix matching with strictTrailingSlash option ([353ecc0](https://github.com/troch/path-parser/commit/353ecc0)) | ||
<a name="4.0.0"></a> | ||
@@ -2,0 +12,0 @@ # [4.0.0](https://github.com/troch/path-parser/compare/v3.0.1...v4.0.0) (2018-03-25) |
@@ -102,5 +102,8 @@ 'use strict'; | ||
var optTrailingSlash = function (source, strictTrailingSlash) { | ||
if (!strictTrailingSlash) { | ||
if (strictTrailingSlash) { | ||
return source; | ||
} | ||
if (source === '\\/') { | ||
return source; | ||
} | ||
return source.replace(/\\\/$/, '') + '(?:\\/)?'; | ||
@@ -107,0 +110,0 @@ }; |
@@ -100,5 +100,8 @@ import { build, parse } from 'search-params'; | ||
var optTrailingSlash = function (source, strictTrailingSlash) { | ||
if (!strictTrailingSlash) { | ||
if (strictTrailingSlash) { | ||
return source; | ||
} | ||
if (source === '\\/') { | ||
return source; | ||
} | ||
return source.replace(/\\\/$/, '') + '(?:\\/)?'; | ||
@@ -105,0 +108,0 @@ }; |
{ | ||
"name": "path-parser", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A small utility to parse, match and generate paths", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/path-parser.js", |
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
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
150792
638
0