@docusaurus/utils
Advanced tools
Comparing version 2.0.0-alpha.48 to 2.0.0-alpha.49
@@ -218,4 +218,4 @@ "use strict"; | ||
str = parts.shift() + (parts.length > 0 ? '?' : '') + parts.join('&'); | ||
// Dedupe forward slashes. | ||
str = str.replace(/^\/+/, '/'); | ||
// Dedupe forward slashes in the entire path, avoiding protocol slashes. | ||
str = str.replace(/([^:]\/)\/+/g, '$1'); | ||
return str; | ||
@@ -222,0 +222,0 @@ } |
{ | ||
"name": "@docusaurus/utils", | ||
"version": "2.0.0-alpha.48", | ||
"version": "2.0.0-alpha.49", | ||
"description": "Node utility functions for Docusaurus packages", | ||
@@ -23,3 +23,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "38bb8c4ced52b5979c5e88b7e073dca09d29112a" | ||
"gitHead": "409f169379379468c5039e4b7fb7ca83100ad6bb" | ||
} |
@@ -254,2 +254,6 @@ /** | ||
{ | ||
input: ['/test/', '/', 'ro', 'doc1'], | ||
output: '/test/ro/doc1', | ||
}, | ||
{ | ||
input: ['', '/', 'ko', 'hello'], | ||
@@ -256,0 +260,0 @@ output: '/ko/hello', |
@@ -256,4 +256,4 @@ /** | ||
// Dedupe forward slashes. | ||
str = str.replace(/^\/+/, '/'); | ||
// Dedupe forward slashes in the entire path, avoiding protocol slashes. | ||
str = str.replace(/([^:]\/)\/+/g, '$1'); | ||
@@ -260,0 +260,0 @@ return str; |
Sorry, the diff of this file is not supported yet
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
329877
810
35
241