@docusaurus/utils
Advanced tools
Comparing version 2.0.0-alpha.49 to 2.0.0-alpha.50
@@ -220,2 +220,4 @@ "use strict"; | ||
str = str.replace(/([^:]\/)\/+/g, '$1'); | ||
// Dedupe forward slashes at the beginning of the path. | ||
str = str.replace(/^\/+/g, '/'); | ||
return str; | ||
@@ -222,0 +224,0 @@ } |
{ | ||
"name": "@docusaurus/utils", | ||
"version": "2.0.0-alpha.49", | ||
"version": "2.0.0-alpha.50", | ||
"description": "Node utility functions for Docusaurus packages", | ||
@@ -23,3 +23,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "409f169379379468c5039e4b7fb7ca83100ad6bb" | ||
"gitHead": "c207c3ba31b16eb91ac3c6dbe7a295e698c9413c" | ||
} |
@@ -258,2 +258,6 @@ /** | ||
{ | ||
input: ['/', '/', '2020/02/29/leap-day'], | ||
output: '/2020/02/29/leap-day', | ||
}, | ||
{ | ||
input: ['', '/', 'ko', 'hello'], | ||
@@ -260,0 +264,0 @@ output: '/ko/hello', |
@@ -259,2 +259,5 @@ /** | ||
// Dedupe forward slashes at the beginning of the path. | ||
str = str.replace(/^\/+/g, '/'); | ||
return str; | ||
@@ -261,0 +264,0 @@ } |
Sorry, the diff of this file is not supported yet
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
335421
818