fix(utils): add logic for image links

pull/288/head
Nodreame 4 years ago
parent de89c1e5eb
commit bd0cac71d8

@ -6,6 +6,7 @@ export { inBrowser }
* Join two paths by resolving the slash collision.
*/
export function joinPath(base: string, path: string): string {
if (path.charAt(0) !== '/') return path
return `${base}${path}`.replace(/\/+/g, '/')
}

Loading…
Cancel
Save