(path)
| 169 | } |
| 170 | |
| 171 | export const normalizePath = function (path) { |
| 172 | if (path === '' || path === '/') return '/' |
| 173 | return path |
| 174 | .replace(/\/+/g, '/') |
| 175 | .replace(/\/$/, '') || '/' |
| 176 | } |
| 177 | |
| 178 | export const resolveUrl = function (url, baseUrl) { |
| 179 | if (!url) return url |
no outgoing calls
no test coverage detected