refactor(v2): purify normalizeUrl (#4814)

Co-authored-by: Nam Hoang Le <nam.hoang.le@mgm-tp.com>
This commit is contained in:
Nam Hoang Le 2021-05-18 22:57:39 +07:00 committed by GitHub
parent fa7aa08100
commit e85ec1ab12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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;