mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 21:03:47 +02:00
refactor(v2): purify normalizeUrl (#4814)
Co-authored-by: Nam Hoang Le <nam.hoang.le@mgm-tp.com>
This commit is contained in:
parent
fa7aa08100
commit
e85ec1ab12
2 changed files with 6 additions and 3 deletions
|
@ -199,7 +199,7 @@ export function getSubFolder(file: string, refDir: string): string | null {
|
|||
}
|
||||
|
||||
export function normalizeUrl(rawUrls: string[]): string {
|
||||
const urls = rawUrls;
|
||||
const urls = [...rawUrls];
|
||||
const resultArray = [];
|
||||
|
||||
let hasStartingSlash = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue